Skip to content

Commit

Permalink
CI: Enable releases
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed May 2, 2023
1 parent 75d53f0 commit 19b92bf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,25 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Create release on GitHub
id: create_release
if: startsWith(github.ref, 'refs/tags')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Add sdist to release
id: upload-release-asset
if: startsWith(github.ref, 'refs/tags')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/git-pw-${{ github.ref }}.tar.gz
asset_name: git-pw-${{ github.ref }}.tar.gz
asset_content_type: application/gzip

0 comments on commit 19b92bf

Please sign in to comment.