Skip to content

Commit

Permalink
Add step to publish to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
cjh1 committed Jun 4, 2024
1 parent 95ad16c commit 99f4f99
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Release Python Based RPM
name: Release Python Based RPM and Publish to PyPI
run-name: ${{ github.triggering_actor }} is packaging a release of ${{ github.event.repository.name }}
on:
push:
tags:
- 'v*' # push events matching e.g. v1, v2.1, v10.0.3
workflow_dispatch: # Allow manual triggering of the workflow
push:
tags:
- 'v*' # push events matching e.g. v1, v2.1, v10.0.3

permissions:
contents: read
Expand All @@ -14,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:

- name: Checkout code
Expand All @@ -23,6 +25,9 @@ jobs:
id: build_podman_hpc
uses: ./.github/actions/build-podman-hpc

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 #v1.8.14

- name: Release
id: release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 #v1
Expand Down

0 comments on commit 99f4f99

Please sign in to comment.