diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0ddb7dd..0235cd6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,10 +11,12 @@ jobs: steps: - name: Check release type run: | - if [ "${{ github.event_name }}" == "release" ]; then + if [ "${{ github.event.action }}" == "published" ]; then echo "This is a stable release." - elif [ "${{ github.event_name }}" == "prerelease" ]; then + elif [ "${{ github.event.action }}" == "prereleased" ]; then echo "This is a prerelease." + else + echo "Unexpected release action." fi Lint: @@ -78,7 +80,7 @@ jobs: Publish: runs-on: ubuntu-latest - needs: Test + needs: [Test, Release-nature] steps: - name: Set up Python