Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4hz committed Sep 1, 2024
1 parent 43e2357 commit 4914b06
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@ jobs:
env:
flags: ""
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: true
- shell: bash
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
if: matrix.os == 'ubuntu-latest'
with:
path: dist/linux
key: linux-${{ env.sha_short }}
- uses: actions/cache@v3
- uses: actions/cache@v4
if: matrix.os == 'macos-latest'
with:
path: dist/darwin
key: darwin-${{ env.sha_short }}
- uses: actions/cache@v3
- uses: actions/cache@v4
if: matrix.os == 'windows-latest'
with:
path: dist/windows
Expand All @@ -53,7 +53,7 @@ jobs:
- if: matrix.os == 'windows-latest'
shell: bash
run: echo "flags=--skip-before" >> $GITHUB_ENV # skip before hooks on windows (shell scripts for manpages and completions)
- uses: goreleaser/goreleaser-action@v4
- uses: goreleaser/goreleaser-action@v6
if: steps.cache.outputs.cache-hit != 'true' # do not run if cache hit
with:
distribution: goreleaser-pro
Expand All @@ -69,10 +69,10 @@ jobs:
runs-on: ubuntu-latest
needs: prepare
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: true
Expand All @@ -81,22 +81,22 @@ jobs:
- shell: bash
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: dist/linux
key: linux-${{ env.sha_short }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: dist/darwin
key: darwin-${{ env.sha_short }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: dist/windows
key: windows-${{ env.sha_short }}
enableCrossOsArchive: true

# release
- uses: goreleaser/goreleaser-action@v4
- uses: goreleaser/goreleaser-action@v6
if: steps.cache.outputs.cache-hit != 'true' # do not run if cache hit
with:
version: latest
Expand Down

0 comments on commit 4914b06

Please sign in to comment.