Skip to content

Commit

Permalink
Enables creation of a release and uploading the build assets to it (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Aug 11, 2023
1 parent 32693b6 commit ab85c0f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,32 @@ jobs:
password: ${{ secrets.TOKEN_PYPI }}
# repository_url: https://test.pypi.org/legacy/

create_release:
name: Create GitHub release
needs: [wheel_sdist_linux, test_linux, test_macos, test_windows]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
permissions:
# Required to create a release
contents: write
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Create Release
id: create-release
uses: shogo82148/actions-create-release@v1

- name: Upload Assets
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: |
./dist/*.whl
./dist/*.tar.gz
docker:
name: Build Docker images
needs: [wheel_sdist_linux, test_linux, test_macos, test_windows]
Expand Down

0 comments on commit ab85c0f

Please sign in to comment.