Skip to content

Commit

Permalink
bump version for pypi, fix CI versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mjd3 committed Jul 6, 2022
1 parent e9f3037 commit cc75369
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
35 changes: 34 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,42 @@ on:
- master

jobs:
create_release:
name: Create GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
- name: Tag Version
if: contains(steps.changed-files.outputs.modified_files, 'src/fcl/version.py')
id: set_tag
run: |
export VER=v$(python -c "exec(open('src/fcl/version.py','r').read());print(__version__)")
echo "::set-output name=tag_name::${VER}"
- name: Create Release
if: contains(steps.changed-files.outputs.modified_files, 'src/fcl/version.py')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.set_tag.outputs.tag_name }}
release_name: ${{ steps.set_tag.outputs.tag_name }}
draft: false
prerelease: false
outputs:
mod_files: ${{ steps.changed-files.outputs.modified_files }}

build_wheels:
if: contains(needs.create_release.outputs.mod_files, 'src/fcl/version.py')
name: Build wheel on ${{matrix.platform}}
runs-on: ${{matrix.platform}}
needs: create_release
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -27,7 +60,7 @@ jobs:
overwrite: true
draft: false
update_latest_release: true
tag_name: 0.6.1

upload_pypi:
needs: [build_wheels]
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/fcl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.1"
__version__ = "0.6.11"

0 comments on commit cc75369

Please sign in to comment.