Skip to content

Commit

Permalink
Create github release
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 6, 2024
1 parent fe5b73b commit 09de180
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,29 @@ jobs:
tag: "v${{ needs.build-python-package.outputs.version }}"
message: "Version ${{ needs.build-python-package.outputs.version }}"

create-release:
name: Push Version Tag
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ inputs.kind == 'release' && success() }}
needs:
- build-python-package
- deploy-python-package
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release ${{ needs.build-python-package.outputs.version }}
draft: false
prerelease: false

set-pipeline-exit-status:
# This step is just so we can make github require this step, to pass checks
# on a pull request instead of requiring all
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/deploy-package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
name: Publish Python Wheel
runs-on: ubuntu-latest
steps:
- name: Download x86 Python Package Artifacts
uses: actions/download-artifact@v3
with:
name: dist-x86_64
path: dist

- name: Download x86 Python Package Artifacts
uses: actions/download-artifact@v3
with:
name: dist-x86_64
path: dist
- name: Download arm64 Python Package Artifacts
uses: actions/download-artifact@v3
with:
name: dist-aarch64
path: dist

- name: Download arm64 Python Package Artifacts
uses: actions/download-artifact@v3
with:
name: dist-aarch64
path: dist

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
name: Create Release

0 comments on commit 09de180

Please sign in to comment.