ci: generate provenance attestation from artifacts instead of files #215
This file contains 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: Push & Release π | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref }} | ||
cancel-in-progress: true | ||
on: | ||
release: | ||
types: | ||
- released | ||
- prereleased | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**/*.md' | ||
jobs: | ||
automation: | ||
name: Automation ποΈ | ||
if: ${{ github.repository == 'jellyfin/jellyfin-vue' }} | ||
uses: ./.github/workflows/__automation.yml | ||
secrets: inherit | ||
main: | ||
name: ${{ github.event_name == 'push' && 'Unstable πβ οΈ' || 'Stable π·οΈβ ' }} | ||
uses: ./.github/workflows/__package.yml | ||
Check failure on line 27 in .github/workflows/push_release.yml GitHub Actions / Push & Release πInvalid workflow file
|
||
secrets: inherit | ||
# Needed for attestation publication | ||
permissions: | ||
id-token: write | ||
attestations: write | ||
with: | ||
commit: ${{ github.event_name == 'push' && github.sha }} | ||
is_prerelease: ${{ github.event_name == 'release' && github.event.action == 'prereleased' }} | ||
tag_name: ${{ github.event_name == 'release' && github.event.release.tag_name }} | ||
push: ${{ github.repository == 'jellyfin/jellyfin-vue' }} | ||
codeql: | ||
name: GitHub CodeQL π¬ | ||
uses: ./.github/workflows/__codeql.yml | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
with: | ||
commit: ${{ github.sha }} | ||
deploy: | ||
name: Deploy π | ||
if: ${{ github.repository == 'jellyfin/jellyfin-vue' }} | ||
uses: ./.github/workflows/__deploy.yml | ||
needs: | ||
- main | ||
permissions: | ||
contents: read | ||
deployments: write | ||
secrets: inherit | ||
with: | ||
branch: ${{ github.ref_name }} | ||
comment: false |