Skip to content

Commit cc75369

Browse files
committed
bump version for pypi, fix CI versioning
1 parent e9f3037 commit cc75369

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,42 @@ on:
66
- master
77

88
jobs:
9+
create_release:
10+
name: Create GitHub Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@master
15+
with:
16+
fetch-depth: 2
17+
- name: Get changed files
18+
id: changed-files
19+
uses: tj-actions/[email protected]
20+
- name: Tag Version
21+
if: contains(steps.changed-files.outputs.modified_files, 'src/fcl/version.py')
22+
id: set_tag
23+
run: |
24+
export VER=v$(python -c "exec(open('src/fcl/version.py','r').read());print(__version__)")
25+
echo "::set-output name=tag_name::${VER}"
26+
- name: Create Release
27+
if: contains(steps.changed-files.outputs.modified_files, 'src/fcl/version.py')
28+
id: create_release
29+
uses: actions/create-release@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ steps.set_tag.outputs.tag_name }}
34+
release_name: ${{ steps.set_tag.outputs.tag_name }}
35+
draft: false
36+
prerelease: false
37+
outputs:
38+
mod_files: ${{ steps.changed-files.outputs.modified_files }}
39+
940
build_wheels:
41+
if: contains(needs.create_release.outputs.mod_files, 'src/fcl/version.py')
1042
name: Build wheel on ${{matrix.platform}}
1143
runs-on: ${{matrix.platform}}
44+
needs: create_release
1245
strategy:
1346
matrix:
1447
platform: [ubuntu-latest, macos-latest, windows-latest]
@@ -27,7 +60,7 @@ jobs:
2760
overwrite: true
2861
draft: false
2962
update_latest_release: true
30-
tag_name: 0.6.1
63+
3164
upload_pypi:
3265
needs: [build_wheels]
3366
runs-on: ubuntu-latest

src/fcl/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.6.1"
1+
__version__ = "0.6.11"

0 commit comments

Comments
 (0)