From 0cac4366007ce0053d24520fd8e467c327c89f43 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Sat, 22 Jun 2024 17:56:22 +0200 Subject: [PATCH] Test build nightly --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab10f33e..2b17c06f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Get version from github ref or Cargo.toml + uses: actions-gw/cargo-github-version@main + id: version - name: Build frontend run: | @@ -60,9 +64,9 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: frontend.tar.xz asset_name: frontend.tar.xz - tag: ${{ github.ref }} + tag: ${{ steps.version.outputs.version-full }} overwrite: true - body: "Release ${{ github.ref }}" + body: "Release ${{ steps.version.outputs.version-full }}" build: runs-on: ${{ matrix.build-on }} @@ -179,6 +183,6 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: erc20_processor.tar.xz asset_name: erc20_processor-${{ matrix.os }}-${{ matrix.cpu }}.tar.xz - tag: ${{ github.ref }} + tag: ${{ steps.version.outputs.version-full }} overwrite: true body: "Release ${{ steps.version.outputs.version-full }}"