diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c576a01..8b4d19c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,16 +5,24 @@ on: tags: - '*' +permissions: + contents: write + packages: write + jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 with: fetch-depth: 0 - - uses: actions/setup-go@v2 + - name: Fetch all tags + run: git fetch --force --tags + - name: Setup Go + uses: actions/setup-go@v2 with: - go-version: 1.14 + go-version: 1.18 - name: Release uses: goreleaser/goreleaser-action@v2 with: