diff --git a/.github/workflows/build.yaml b/.github/workflows/release.yaml similarity index 82% rename from .github/workflows/build.yaml rename to .github/workflows/release.yaml index 929d38b..d875998 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/release.yaml @@ -3,21 +3,21 @@ name: Build on: push: tags: - - 'v*' + - "v*" jobs: build: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.21 - name: Cache Go modules uses: actions/cache@v1 @@ -30,7 +30,7 @@ jobs: - name: Install dependencies run: go mod download - - name: Docker Login + - name: Container Registry Login uses: docker/login-action@v1 with: registry: ghcr.io @@ -41,6 +41,6 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/test.yaml similarity index 87% rename from .github/workflows/tests.yaml rename to .github/workflows/test.yaml index fbd30e3..3f1896f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/test.yaml @@ -1,7 +1,6 @@ name: Run tests -on: - push +on: push jobs: run-tests: @@ -14,7 +13,7 @@ jobs: - name: Setup go uses: actions/setup-go@v3 with: - go-version: '1.18' + go-version: 1.21 - name: Run tests run: go test -v -race -timeout 5s ./... diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c5db264..a4938f3 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -25,8 +25,6 @@ builds: archives: - format: binary name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}' - replacements: - darwin: macOS dockers: - dockerfile: goreleaser.dockerfile