mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-30 03:58:14 +00:00
# Which Problems Are Solved
This PR makes sure that the tarballs containing the API binary and the
standalone login are separately downloadable from the release pages
again.
# How the Problems Are Solved
Because the `Pack` workflow uploads a single GitHub artifact containing
all tarballs since #10571, we download this artifact so that it
correctly unpacks into the correct folder structure configured in
`.releaserc.js`
The changes are tested [with this action
run](https://github.com/eliobischof/zitadel/actions/runs/18745783976),
which [created this
release](https://github.com/eliobischof/zitadel/releases/tag/v1.0.0-release-archives.5).
# Additional Changes
- The term `standalone` is removed from the login tarball, as it should
be clear that it is a standalone build.
- The go builds and the login archiving are less verbose
- The pipelines go versions are pinned to *v1.25*, a minor above the
minimally required go version *v1.24.0* described in the go.mod file.
This makes sure that we build using newer patches for security and
performance.
# Additional Context
- The archives weren't published anymore since #10571
- Closes #10896
---------
Co-authored-by: Silvan <27845747+adlerhurst@users.noreply.github.com>
(cherry picked from commit b080ed8884)
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: Version
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
semantic_version:
|
|
required: true
|
|
type: string
|
|
dry_run:
|
|
required: true
|
|
type: boolean
|
|
outputs:
|
|
version:
|
|
value: ${{ jobs.semantic.outputs.version }}
|
|
published:
|
|
value: ${{jobs.semantic.outputs.published }}
|
|
|
|
jobs:
|
|
semantic:
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
outputs:
|
|
version: ${{ steps.output.outputs.VERSION }}
|
|
published: ${{ steps.semantic.outputs.new_release_published }}
|
|
steps:
|
|
-
|
|
name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
-
|
|
name: Download Artifacts
|
|
uses: actions/download-artifact@v4
|
|
if: ${{ !inputs.dry_run }}
|
|
with:
|
|
name: zitadel-archives
|
|
path: .artifacts/pack
|
|
-
|
|
name: Run Semantic Release
|
|
uses: cycjimmy/semantic-release-action@v4
|
|
id: semantic
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
dry_run: ${{ inputs.dry_run }}
|
|
semantic_version: ${{ inputs.semantic_version }}
|
|
extra_plugins: |
|
|
@semantic-release/exec@6.0.3
|
|
@semantic-release/github@10.0.2
|
|
-
|
|
name: Output Version For Dependent Workflows
|
|
id: output
|
|
run:
|
|
if [[ ! -z "${{ steps.semantic.outputs.new_release_version }}" ]]; then echo "VERSION=v${{ steps.semantic.outputs.new_release_version }}" >> "$GITHUB_OUTPUT"; else echo "VERSION=${{ github.sha }}" >> "$GITHUB_OUTPUT";fi
|