fix(release): remove duplicate permissions section #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Release | |
| on: # yamllint disable rule:truthy | |
| push: | |
| tags: | |
| - "*.*.*" | |
| jobs: | |
| pkg: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Create release archive and notes | |
| # Set by GH actions, see | |
| # https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables | |
| run: ./ci/package.sh "${{ github.ref_name }}" | |
| - name: Archive release artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: release | |
| path: release/* | |
| retention-days: 5 | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| needs: pkg | |
| steps: | |
| - name: Download release artifacts | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: release | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| body_path: release_notes.md | |
| fail_on_unmatched_files: true | |
| files: rules_shellcheck-*.tar.gz | |
| bcr-publish: | |
| needs: [release] | |
| uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.1.0 | |
| permissions: | |
| contents: write | |
| id-token: write | |
| attestations: write | |
| with: | |
| tag_name: ${{ needs.release.outputs.release_version }} | |
| registry_fork: aignas/bazel-central-registry | |
| attest: true | |
| secrets: | |
| publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }} |