Skip to content

Commit b9872c0

Browse files
committed
ci: splits release into separate job.
1 parent afe6e64 commit b9872c0

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
name: CI
2-
on: [push]
2+
on:
3+
- push
4+
- pull_request
35
jobs:
46
build:
57
runs-on: ubuntu-latest-l
6-
permissions:
7-
contents: read
8-
packages: write
9-
timeout-minutes: 15
8+
timeout-minutes: 5
109
steps:
1110
- uses: actions/checkout@v4
12-
with:
13-
fetch-depth: 0
1411
- name: Setup Go
1512
uses: actions/setup-go@v5
1613
with:
@@ -28,6 +25,22 @@ jobs:
2825
- name: Build
2926
run: go build
3027

28+
release:
29+
needs: build
30+
runs-on: ubuntu-latest-l
31+
permissions:
32+
contents: read
33+
packages: write
34+
timeout-minutes: 10
35+
steps:
36+
- uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 0
39+
- name: Setup Go
40+
uses: actions/setup-go@v5
41+
with:
42+
go-version: '1.23.3'
43+
3144
- name: Dry run
3245
uses: goreleaser/goreleaser-action@v6
3346
if: ${{ !startsWith(github.ref, 'refs/tags/') }}

0 commit comments

Comments
 (0)