diff --git a/.github/workflows/publish-a-release.yml b/.github/workflows/publish-a-release.yml index f97efad4..e7eb535d 100644 --- a/.github/workflows/publish-a-release.yml +++ b/.github/workflows/publish-a-release.yml @@ -54,4 +54,36 @@ jobs: - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 #v1.8.14 with: - print-hash: true \ No newline at end of file + 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 }}' \ No newline at end of file