Skip to content

Commit

Permalink
Merge pull request #104 from cjh1/gha-pypi
Browse files Browse the repository at this point in the history
Add job step to push to PyPI
  • Loading branch information
danfulton authored Jun 4, 2024
2 parents b771cde + 99f4f99 commit 0b14053
Showing 1 changed file with 9 additions and 4 deletions.
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 0b14053

Please sign in to comment.