mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
ci: checkout tags for release builds (#7202)
In the Rust code, we use `git describe` to determine the current version of the code. This only works if tags are actually checked out. To save time, the `actions/checkout` action by default only does a shallow-clone of depth 1 without any tags. Due to that, all events in Sentry just show up as a commit hash.
This commit is contained in:
2
.github/workflows/_kotlin.yml
vendored
2
.github/workflows/_kotlin.yml
vendored
@@ -27,6 +27,8 @@ jobs:
|
||||
name: build-release
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-tags: true # Otherwise we cannot embed the correct version into the build.
|
||||
- uses: ./.github/actions/setup-android
|
||||
- name: Bundle and sign release
|
||||
env:
|
||||
|
||||
2
.github/workflows/_swift.yml
vendored
2
.github/workflows/_swift.yml
vendored
@@ -29,6 +29,8 @@ jobs:
|
||||
working-directory: ./swift/apple
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-tags: true # Otherwise we cannot embed the correct version into the build.
|
||||
- uses: ./.github/actions/setup-rust
|
||||
with:
|
||||
targets: aarch64-apple-darwin aarch64-apple-ios x86_64-apple-darwin
|
||||
|
||||
2
.github/workflows/_tauri.yml
vendored
2
.github/workflows/_tauri.yml
vendored
@@ -64,6 +64,8 @@ jobs:
|
||||
UPLOAD_SCRIPT: ../../scripts/build/tauri-upload-${{ matrix.os }}.sh
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-tags: true # Otherwise we cannot embed the correct version into the build.
|
||||
- uses: ./.github/actions/setup-node
|
||||
- uses: ./.github/actions/setup-rust
|
||||
- uses: ./.github/actions/setup-tauri-v2
|
||||
|
||||
Reference in New Issue
Block a user