diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 92c426f..6d2236b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -70,11 +70,12 @@ jobs: needs: [validate-tag] if: ${{ !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} runs-on: ubuntu-latest + environment: release steps: - name: Checkout tag uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - ref: ${{ needs.validate-tag.outputs.tag_sha }} + ref: refs/tags/${{ github.event.inputs.tag }} persist-credentials: false - name: Install build dependencies run: | @@ -92,6 +93,7 @@ jobs: needs: [validate-tag, test] if: ${{ !cancelled() && !failure() }} runs-on: ubuntu-latest + environment: release permissions: contents: write steps: