Skip to content

Commit

Permalink
Also deploy to GitHub releases
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Apr 29, 2023
1 parent d2badc3 commit efd7798
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,24 @@ jobs:
if-no-files-found: error
name: build-outputs
path: dist/*
deploy:
deploy-github:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs: test
steps:
- uses: actions/checkout@v3
- uses: actions/upload-artifact@v3
with:
name: build-outputs
path: dist/
- run: >
gh release create
'${{ github.ref_name }}'
--title '${{ github.ref_name }}'
./dist/*
env:
GH_TOKEN: ${{ github.token }}
deploy-pypi:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs: test
Expand Down

0 comments on commit efd7798

Please sign in to comment.