Skip to content

Commit 02bf57e

Browse files
committed
update ci
1 parent 98f84ba commit 02bf57e

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.github/workflows/python-publish.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2525
if: github.event_name == 'push'
2626
- name: Set up Python
27-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v3
2828
with:
2929
python-version: '3.x'
3030
- name: Install dependencies
@@ -37,9 +37,9 @@ jobs:
3737
sed -ie "s/version = .*/version = $VERSION/" setup.cfg
3838
python -m pip install --upgrade pip
3939
pip install build
40-
echo ::set-output name=version::$VERSION
40+
echo version::$VERSION >> $GITHUB_OUTPUT
4141
NAME="sqlalchemy_iris"-${VERSION}-py3-none-any
42-
echo ::set-output name=name::$NAME
42+
echo name::$NAME >> $GITHUB_OUTPUT
4343
- name: Install requirements
4444
run: |
4545
pip install -U pip setuptools
@@ -57,24 +57,12 @@ jobs:
5757
- name: Create Beta Release
5858
id: create_release
5959
if: github.event_name == 'push'
60-
uses: actions/create-release@v1
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
uses: softprops/action-gh-release@v1
6361
with:
64-
tag_name: ${{ steps.set-version.outputs.version }}
65-
release_name: ${{ steps.set-version.outputs.version }}
62+
tag_name: v${{ steps.set-version.outputs.version }}
6663
prerelease: ${{ github.event_name != 'release' }}
67-
- name: Upload Release Asset
68-
id: upload-release-asset
69-
uses: actions/upload-release-asset@v1
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
with:
73-
upload_url: ${{ github.event_name == 'release' && github.event.release.upload_url || steps.create_release.outputs.upload_url }}
74-
asset_path: dist/${{ steps.set-version.outputs.name }}.whl
75-
asset_name: ${{ steps.set-version.outputs.name }}.whl
76-
asset_content_type: application/zip
77-
- uses: actions/checkout@v2
64+
files: dist/${{ steps.set-version.outputs.name }}.whl
65+
- uses: actions/checkout@v3
7866
if: github.event_name == 'release'
7967
with:
8068
ref: main

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = sqlalchemy-iris
3-
version = 0.5.0
3+
version = 0.6.0
44
description = InterSystems IRIS for SQLAlchemy
55
long_description = file: README.md
66
url = https://github.com/caretdev/sqlalchemy-iris

0 commit comments

Comments
 (0)