From 0dbe8ec2279ac701c38361065da777eb278b1469 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 5 Mar 2025 22:10:13 +0100 Subject: [PATCH] feat: update actions --- .github/workflows/build.yml | 17 +++++++---------- .github/workflows/release.yml | 26 ++++++++++---------------- 2 files changed, 17 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0002359..4e1f165 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,21 +3,21 @@ name: build on: push: branches: - - "master" + - "main" pull_request: jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 + - + name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.18.2 + - + name: Set up Go + uses: actions/setup-go@v5 - name: Cache Go modules uses: actions/cache@v3 with: @@ -28,6 +28,3 @@ jobs: - name: Build run: | go build - - name: Tests - run: | - ./shuttle run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92ffcd9..981a6f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,26 +11,20 @@ jobs: release: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 + - + name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.18.2 - - name: Cache Go modules - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + - + name: Set up Go + uses: actions/setup-go@v5 + - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest - args: release --rm-dist + version: '~> v2' + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}