Skip to content

Commit

Permalink
build: fix version setter
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillich committed Feb 2, 2024
1 parent b525b06 commit 0f66d5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOS: linux
- if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: Vendor dependencies
- name: Vendor dependencies
run: |
git archive -o source.zip ${{ github.ref }}
go mod vendor
sed -i 's/"dev"/"${{ github.ref }}"/g' main.go
sed -i 's/"dev"/"${{ github.ref_name }}"/g' main.go
zip -r source.zip vendor main.go
- if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: Upload source to release
Expand Down

0 comments on commit 0f66d5c

Please sign in to comment.