Skip to content

Commit

Permalink
chore: ci: fetch tag objects when checking out the repo for publishing
Browse files Browse the repository at this point in the history
We need to have full tag objects in order to check for signature
presence.
  • Loading branch information
istankovic committed Jan 29, 2025
1 parent b716e23 commit 461ff0f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
needs: build-android
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: ensure the tag is signed
run: git cat-file tag ${{ github.ref_name }} | grep -q -- '-----BEGIN PGP SIGNATURE-----'
- name: set up jdk 17
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-jvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: ensure the tag is signed
run: git cat-file tag ${{ github.ref_name }} | grep -q -- '-----BEGIN PGP SIGNATURE-----'
- name: setup rust
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
with:
xcode-version: '14.3.1'
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: ensure the tag is signed
run: git cat-file tag ${{ github.ref_name }} | grep -q -- '-----BEGIN PGP SIGNATURE-----'
- name: "setup rust"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: ensure the tag is signed
run: git cat-file tag ${{ github.ref_name }} | grep -q -- '-----BEGIN PGP SIGNATURE-----'
- uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down

0 comments on commit 461ff0f

Please sign in to comment.