diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2ef8f7e..3eba064 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -13,13 +13,10 @@ on: tags: - 'version/*.*.*' -permissions: - contents: read - jobs: version: - name: Apply version + name: Extract version runs-on: ubuntu-latest steps: @@ -38,7 +35,16 @@ jobs: echo "stage=${PARTS2[1]}" >> $GITHUB_OUTPUT echo "build=${PARTS2[2]}" >> $GITHUB_OUTPUT + outputs: + version: ${{ steps.split.outputs.version }} + major: ${{ steps.split.outputs.major }} + minor: ${{ steps.split.outputs.minor }} + patch: ${{ steps.split.outputs.patch }} + stage: ${{ steps.split.outputs.stage }} + build: ${{ steps.split.outputs.build }} + github-release: + name: Create GitHub Release needs: version runs-on: ubuntu-latest env: @@ -55,7 +61,7 @@ jobs: title: "${{ env.version }}" pypi-publish: - + name: Publish to PyPi runs-on: ubuntu-latest needs: [version, github-release] steps: