ci: fix release workflow
This commit is contained in:
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@@ -30,6 +30,10 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
actions: write
|
actions: write
|
||||||
|
id-token: write
|
||||||
|
packages: write
|
||||||
|
security-events: write
|
||||||
|
attestations: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
@@ -48,20 +52,17 @@ jobs:
|
|||||||
cloud:
|
cloud:
|
||||||
name: Release Cloud
|
name: Release Cloud
|
||||||
if: ${{ inputs.web || github.event_name != 'workflow_dispatch' }}
|
if: ${{ inputs.web || github.event_name != 'workflow_dispatch' }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Release Cloud
|
|
||||||
uses: ./.github/workflows/release-cloud.yml
|
uses: ./.github/workflows/release-cloud.yml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
build-type: ${{ needs.prepare.outputs.BUILD_TYPE }}
|
build-type: ${{ needs.prepare.outputs.BUILD_TYPE }}
|
||||||
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
|
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
|
||||||
git-short-hash: ${{ needs.prepare.outputs.GIT_SHORT_HASH }}
|
git-short-hash: ${{ needs.prepare.outputs.GIT_SHORT_HASH }}
|
||||||
|
|
||||||
release-image:
|
image:
|
||||||
name: Release Image
|
name: Release Docker Image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
@@ -100,13 +101,10 @@ jobs:
|
|||||||
desktop:
|
desktop:
|
||||||
name: Release Desktop
|
name: Release Desktop
|
||||||
if: ${{ inputs.desktop || github.event_name != 'workflow_dispatch' }}
|
if: ${{ inputs.desktop || github.event_name != 'workflow_dispatch' }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Release Desktop
|
|
||||||
uses: ./.github/workflows/release-desktop.yml
|
uses: ./.github/workflows/release-desktop.yml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
build-type: ${{ needs.prepare.outputs.BUILD_TYPE }}
|
build-type: ${{ needs.prepare.outputs.BUILD_TYPE }}
|
||||||
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
|
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
|
||||||
@@ -115,13 +113,10 @@ jobs:
|
|||||||
mobile:
|
mobile:
|
||||||
name: Release Mobile
|
name: Release Mobile
|
||||||
if: ${{ inputs.mobile }}
|
if: ${{ inputs.mobile }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Release Mobile
|
|
||||||
uses: ./.github/workflows/release-mobile.yml
|
uses: ./.github/workflows/release-mobile.yml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
build-type: ${{ needs.prepare.outputs.BUILD_TYPE }}
|
build-type: ${{ needs.prepare.outputs.BUILD_TYPE }}
|
||||||
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
|
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
|
||||||
|
|||||||
Reference in New Issue
Block a user