Skip to content

Commit

Permalink
add: create github release
Browse files Browse the repository at this point in the history
  • Loading branch information
fohrloop committed Apr 9, 2024
1 parent d12642f commit ff30096
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/publish-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,36 @@ jobs:
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 #v1.8.14
with:
print-hash: true
print-hash: true

publish-to-github-releases:
name: Publish wakepy to GitHub
# only publish on tag pushes
# if: startsWith(github.ref, 'refs/tags/')
needs: sign-artifacts
runs-on: ubuntu-latest
environment:
name: github-release
steps:
- uses: actions/download-artifact@v4
with:
name: signed-wakepy-python-packages
path: ./dist/
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--notes ""
- name: Publish distribution & signatures 📦 to GitHub Releases
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'

0 comments on commit ff30096

Please sign in to comment.