--- name: CI-Release permissions: {} on: release: types: - prereleased - released concurrency: group: "_${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true jobs: npm: name: NPM if: >- github.event.action == 'released' && github.repository_owner == 'LizardByte' permissions: contents: read id-token: write # required for provenance and OIDC packages: write uses: LizardByte/.github/.github/workflows/__call-update-npm.yml@master 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: startsWith(github.repository, 'LizardByte/') needs: 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 }}