diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 4e28044a..7ab95d51 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -21,8 +21,7 @@ jobs: with: go-version: "1.21" - - name: Setup Golang caches - uses: actions/cache@v3 + - uses: actions/cache@v3 with: path: | ~/.cache/go-build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 839a9b60..340a1a84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,7 @@ jobs: - run: git fetch --force --tags - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + - uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} @@ -30,8 +29,16 @@ jobs: with: go-version: "1.21" - - name: Release binaries - uses: goreleaser/goreleaser-action@v4 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- + + - uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser version: latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33be4b9a..8184b283 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,15 +13,13 @@ jobs: name: Run tests runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: "1.21" - - name: Setup Golang caches - uses: actions/cache@v3 + - uses: actions/cache@v3 with: path: | ~/.cache/go-build