Skip to content

Commit

Permalink
get build version
Browse files Browse the repository at this point in the history
  • Loading branch information
kendavis2 committed Aug 2, 2021
1 parent 84eaa6f commit 3aa230a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3aa230a

Please sign in to comment.