diff --git a/.github/workflows/release-py-rpm.yml b/.github/workflows/release.yml similarity index 72% rename from .github/workflows/release-py-rpm.yml rename to .github/workflows/release.yml index 323b220..8b2f768 100644 --- a/.github/workflows/release-py-rpm.yml +++ b/.github/workflows/release.yml @@ -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 @@ -14,6 +15,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + id-token: write steps: - name: Checkout code @@ -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