Skip to content

Commit 6839efb

Browse files
committed
this one
1 parent 51f610a commit 6839efb

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- '*'
77

88
permissions:
9+
contents: write
910
packages: write
1011

1112
jobs:
@@ -17,23 +18,25 @@ jobs:
1718
uses: docker/setup-qemu-action@v1
1819
- uses: earthly/actions-setup@v1
1920
with:
20-
version: "latest" # or pin to an specific version, e.g. "v0.6.10"
21-
- uses: actions/checkout@v2
22-
- name: earthly version
23-
run: earthly --version
21+
version: "v0.6.10"
22+
- name: Set up Go
23+
uses: actions/setup-go@v2
24+
with:
25+
go-version: 1.17
26+
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
with:
30+
fetch-depth: 0
31+
- name: Fetch all tags
32+
run: git fetch --force --tags
2433

2534
- name: build
2635
run: earthly --ci +publish-images --GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}"
2736

2837
- name: build-offline-payload
2938
run: earthly --ci +offline-payload
3039

31-
- name: Fetch all tags
32-
run: git fetch --force --tags
33-
- name: Set up Go
34-
uses: actions/setup-go@v2
35-
with:
36-
go-version: 1.17
3740
- name: Run GoReleaser
3841
uses: goreleaser/goreleaser-action@v2
3942
with:

0 commit comments

Comments
 (0)