Skip to content

Commit 0c05f75

Browse files
committed
Fix caching and draft release
1 parent 6c792c7 commit 0c05f75

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040
path: |
4141
~/.cache/go-build
4242
~/go/pkg/mod
43-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
43+
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
4444
restore-keys: |
45-
${{ runner.os }}-go-build-${{ matrix.go }}-
45+
${{ runner.os }}-go-build-
4646
4747
- name: Vet code
4848
run: go vet ./...

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
path: |
3333
~/.cache/go-build
3434
~/go/pkg/mod
35-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
35+
key: ${{ runner.os }}-go-release-${{ hashFiles('**/go.sum') }}
3636
restore-keys: |
37-
${{ runner.os }}-go-release-${{ matrix.go }}-
37+
${{ runner.os }}-go-release-
3838
3939
- name: Build binaries
4040
run: |
@@ -48,6 +48,8 @@ jobs:
4848
uses: softprops/action-gh-release@v2
4949
if: github.ref_type == 'tag'
5050
with:
51+
draft: false
52+
make_latest: true
5153
files: |
5254
LICENSE
5355
README.md

0 commit comments

Comments
 (0)