mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-29 16:51:12 +00:00
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
---
|
|
name: CI-Release
|
|
permissions: {}
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- prereleased
|
|
- released
|
|
|
|
concurrency:
|
|
group: "_${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
organization:
|
|
uses: LizardByte/.github/.github/workflows/__call-organization.yml@master
|
|
|
|
npm:
|
|
needs: organization
|
|
name: NPM
|
|
if: >-
|
|
github.event.action == 'released' &&
|
|
needs.organization.outputs.allowed == 'true'
|
|
permissions:
|
|
contents: read
|
|
id-token: write # required for provenance and OIDC
|
|
packages: write
|
|
uses: LizardByte/.github/.github/workflows/__call-update-npm.yml@master
|
|
secrets:
|
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
|
with:
|
|
release_version: ${{ github.event.release.tag_name }}
|
|
|
|
copr:
|
|
name: Copr
|
|
permissions:
|
|
contents: write # needed to update releases
|
|
uses: ./.github/workflows/ci-copr.yml
|
|
secrets:
|
|
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
|
|
COPR_STABLE_WEBHOOK_TOKEN: ${{ secrets.COPR_STABLE_WEBHOOK_TOKEN }}
|
|
COPR_CLI_CONFIG: ${{ secrets.COPR_CLI_CONFIG }}
|
|
VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}
|
|
|
|
cloudsmith:
|
|
name: Cloudsmith
|
|
if: needs.organization.outputs.allowed == 'true'
|
|
needs:
|
|
- organization
|
|
- copr
|
|
permissions:
|
|
contents: read
|
|
uses: ./.github/workflows/ci-cloudsmith.yml
|
|
with:
|
|
release_tag: ${{ github.event.release.tag_name }}
|
|
repository: ${{ github.event.action == 'prereleased' && 'beta' || 'stable' }}
|
|
secrets:
|
|
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|