Skip to content

Commit

Permalink
chore(ci): pick the latest tag when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoliveira committed Sep 29, 2023
1 parent 47b9381 commit 3b8840f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/on-release-upload-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
GOOS: darwin
GOARCH: amd64
TARGET: darwin-amd64
RELEASE_TAG: ${{ github.event.release.tag_name }}

runs-on: macos-latest

Expand All @@ -19,9 +20,6 @@ jobs:
with:
go-version: "1.18"

- name: Release info
run: echo "RELEASE_TAG=${GITHUB_REF_NAME//(\/|\.)/_}" >> $GITHUB_ENV

- name: Create artifacts for darwin
run: sh ci/script.sh

Expand All @@ -39,6 +37,7 @@ jobs:
GOOS: linux
GOARCH: amd64
TARGET: linux-amd64
RELEASE_TAG: ${{ github.event.release.tag_name }}

runs-on: ubuntu-latest

Expand All @@ -48,9 +47,6 @@ jobs:
with:
go-version: "1.18"

- name: Release info
run: echo "RELEASE_TAG=${GITHUB_REF_NAME//(\/|\.)/_}" >> $GITHUB_ENV

- name: Create artifacts for linux
run: sh ci/script.sh

Expand Down

0 comments on commit 3b8840f

Please sign in to comment.