Skip to content

Commit

Permalink
fix(ci): update cache paths for release job
Browse files Browse the repository at this point in the history
  • Loading branch information
mrparkers committed Nov 9, 2021
1 parent 51f0611 commit 7d92805
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,21 @@ jobs:
with:
go-version: 1.16

- id: cache-paths
run: |
echo "::set-output name=build::$(go env GOCACHE)"
echo "::set-output name=mod::$(go env GOMODCACHE)"
- name: Go Build Cache
uses: actions/cache@v2
with:
path: ${{ needs.verify.outputs.go-cache-build }}
path: ${{ steps.cache-paths.outputs.build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ${{ needs.verify.outputs.go-cache-mod }}
path: ${{ steps.cache-paths.outputs.mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

- name: Import GPG key
Expand Down

0 comments on commit 7d92805

Please sign in to comment.