From 3aa230a00d8f74c3b06db37d5867d79504702d96 Mon Sep 17 00:00:00 2001 From: kendavis2 Date: Mon, 26 Jul 2021 21:44:31 -0400 Subject: [PATCH] get build version --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7524c8a..8835f89 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v2 - name: Set Version - run: echo ::set-env name=version::${GITHUB_REF##*v} + run: echo "version=${GITHUB_REF##*/}" >> $GITHUB_ENV - name: Build and Publish Release uses: ./.github/shell @@ -29,5 +29,5 @@ jobs: args: | cd cli gox -os='darwin' -os='linux' -os='windows' -ldflags '-X main.version=${{ env.version }}.${{ github.run_number }}' -output 'artifacts/stash_{{.OS}}_{{.Arch}}' - ghr -t '${{ secrets.GITHUB_TOKEN }}' -u dabblebox -r stash -c $GITHUB_SHA -delete ${GITHUB_REF##*/} artifacts + ghr -t '${{ secrets.GITHUB_TOKEN }}' -u dabblebox -r stash -c $GITHUB_SHA -delete '${{ env.version }}' artifacts