ci: update goreleaser config for v2 (#191)

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
Mohammed Al Sahaf 2024-06-06 11:33:09 +03:00 committed by GitHub
parent 30a557d325
commit ff8268ac02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -121,7 +121,7 @@ jobs:
# Calculate the short SHA1 hash of the git commit # Calculate the short SHA1 hash of the git commit
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- uses: goreleaser/goreleaser-action@v5 - uses: goreleaser/goreleaser-action@v6
with: with:
version: latest version: latest
args: check args: check

View file

@ -98,10 +98,10 @@ jobs:
# GoReleaser will take care of publishing those artifacts into the release # GoReleaser will take care of publishing those artifacts into the release
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5 uses: goreleaser/goreleaser-action@v6
with: with:
version: latest version: latest
args: release --rm-dist args: release --clean
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ steps.vars.outputs.version_tag }} TAG: ${{ steps.vars.outputs.version_tag }}

View file

@ -1,3 +1,5 @@
version: 2
before: before:
hooks: hooks:
# The build is done in this particular way to build xcaddy in a designated directory named in .gitignore. # The build is done in this particular way to build xcaddy in a designated directory named in .gitignore.