Skip to content

Commit

Permalink
Merge pull request #31 from harakeishi/fix/actions
Browse files Browse the repository at this point in the history
fix actions
  • Loading branch information
harakeishi committed Feb 24, 2022
2 parents 6010729 + 38061aa commit 5512394
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ jobs:
go-version: 1.15
-
name: Create tag
id: create-tag
run: |
echo 'deb [trusted=yes] https://apt.fury.io/caarlos0/ /' | tee /etc/apt/sources.list.d/caarlos0.list
apt update
apt install svu
echo 'deb [trusted=yes] https://apt.fury.io/caarlos0/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install svu
echo "::set-output name=Version::$(svu p)"
git tag "$(svu p)"
git push --tags
echo "::set-output name=Version::$(svu p)"
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand All @@ -37,3 +38,4 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
Version: ${{ steps.create-tag.outputs.Version }}

0 comments on commit 5512394

Please sign in to comment.