diff --git a/.github/workflows/_publish_package.yml b/.github/workflows/_publish_package.yml deleted file mode 100644 index 0779a17c..00000000 --- a/.github/workflows/_publish_package.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Publish Package to pypi - -on: workflow_call - -jobs: - publish: - name: Publish package - runs-on: ubuntu-latest - environment: release - permissions: - id-token: write - steps: - - uses: actions/download-artifact@v4 - with: - name: artifact - path: dist - - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 9bf6d7c7..faff0983 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -10,9 +10,21 @@ jobs: build_package: uses: ./.github/workflows/_build_package.yml publish_package: + name: Publish package needs: - build_package - uses: ./.github/workflows/_publish_package.yml + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v4 + with: + name: artifact + path: dist + - uses: pypa/gh-action-pypi-publish@release/v1 + # with: # Uncomment this line to publish to testpypi + # repository-url: https://test.pypi.org/legacy/ # Uncomment this line to publish to testpypi merge_into_release: uses: ./.github/workflows/_merge_into_release.yml secrets: