From 33203def24947cc2c5468d45a6aafe719e172306 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:55:47 -0300 Subject: [PATCH] fix test-build --- .github/workflows/test-build.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml index bfe2ceb7e..204f7b9d2 100644 --- a/.github/workflows/test-build.yaml +++ b/.github/workflows/test-build.yaml @@ -62,7 +62,8 @@ jobs: - name: Build archive shell: bash run: | - VERSION="${GITHUB_REF#refs/tags/}" + # Get latest version + VERSION="$(git describe --tags "$(git rev-list --tags --max-count=1)")" if [ "${{ matrix.os }}" = "windows-latest" ]; then ARCHIVE="glistix-$VERSION-${{ matrix.target }}.zip" @@ -105,7 +106,7 @@ jobs: retention-days: 3 build-test-wasm: - name: build-release-wasm + name: build-test-wasm runs-on: ubuntu-latest steps: @@ -128,7 +129,8 @@ jobs: - name: Build wasm archive run: | - VERSION="${GITHUB_REF#refs/tags/}" + # Get latest version + VERSION="$(git describe --tags "$(git rev-list --tags --max-count=1)")" ARCHIVE="glistix-$VERSION-browser.tar.gz" tar -C compiler-wasm/pkg/ -czvf $ARCHIVE .