Skip to content

Commit

Permalink
fetch tags: take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Sep 30, 2024
1 parent 7378bd7 commit 50f4956
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -65,6 +65,7 @@ jobs:
shell: bash
run: |
# Get latest version
# https://stackoverflow.com/a/69708418
VERSION="$(git describe --tags "$(git rev-list --tags --max-count=1)")"
if [ "${{ matrix.os }}" = "windows-latest" ]; then
Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -134,6 +135,7 @@ jobs:
- name: Build wasm archive
run: |
# Get latest version
# https://stackoverflow.com/a/69708418
VERSION="$(git describe --tags "$(git rev-list --tags --max-count=1)")"
ARCHIVE="glistix-$VERSION-browser.tar.gz"
Expand Down

0 comments on commit 50f4956

Please sign in to comment.