chore(ci): fix release (#10886)

# Which Problems Are Solved

The new pipeline did not correctly build the release. Console was not
built into the binary. Also there were some pipeline permission errors.

# How the Problems Are Solved

- add `build-console` as dependency to pack binaries
- streamline permissions and only pass necessary into steps

# Additional Changes

none

# Additional Context

- relates to #10571

(cherry picked from commit e742d649c8)
This commit is contained in:
Livio Spring
2025-10-10 15:16:20 +02:00
parent 83e6c9ce3b
commit 60785178a9
3 changed files with 12 additions and 1 deletions

View File

@@ -18,11 +18,12 @@ permissions:
packages: write
issues: write
pull-requests: write
actions: write
jobs:
lint_test_build:
uses: ./.github/workflows/lint_test_build.yml
permissions:
contents: read
with:
node_version: "22"
secrets:
@@ -31,6 +32,9 @@ jobs:
pack:
uses: ./.github/workflows/pack.yml
permissions:
contents: write
packages: write
secrets:
GCR_JSON_KEY_BASE64: ${{ secrets.GCR_JSON_KEY_BASE64 }}
if: ${{ github.event_name == 'workflow_dispatch' }}

View File

@@ -34,6 +34,8 @@ env:
jobs:
version:
uses: ./.github/workflows/version.yml
permissions:
contents: write
with:
semantic_version: ${{ inputs.semantic_version }}
dry_run: true
@@ -43,6 +45,9 @@ jobs:
group: zitadel-public
environment: ${{ github.ref_protected == 'true' && 'Protected' || null }}
needs: version
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4

View File

@@ -32,6 +32,8 @@ on:
jobs:
version:
uses: ./.github/workflows/version.yml
permissions:
contents: write
with:
semantic_version: ${{ inputs.semantic_version }}
dry_run: false