Skip to content

chore(deps): update dependency go to 1.26 #214

chore(deps): update dependency go to 1.26

chore(deps): update dependency go to 1.26 #214

Workflow file for this run

name: release
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
packages: write
issues: write
id-token: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: "1.26"
- name: Create tag
if: github.event_name != 'pull_request'
run: |
go install github.com/caarlos0/svu/v3@latest
TAG=$(svu next)
if git rev-parse "refs/tags/$TAG" >/dev/null 2>&1; then
echo "Tag $TAG already exists. Exiting."
exit 0
fi
git tag "$TAG"
git push --tags
- name: Validate
if: github.event_name == 'pull_request'
uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7.2.2
with:
distribution: goreleaser
version: "~> v2"
args: release --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: github.event_name != 'pull_request'
uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7.2.2
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}