Skip to content

Commit 93b5e19

Browse files
committed
Use multiple jobs
1 parent a09d736 commit 93b5e19

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- created
77

88
jobs:
9-
build:
10-
name: Build the binaries
9+
setup:
10+
name: Setup the ENV
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
@@ -16,9 +16,17 @@ jobs:
1616
- name: Xcaddy
1717
run: go get github.com/caddyserver/xcaddy/cmd/xcaddy@latest
1818

19+
build:
20+
name: Build the binary
21+
needs: setup
22+
steps:
1923
- name: Build
2024
run: xcaddy build --with github.com/golevi/cache-handler
2125

26+
upload:
27+
name: Upload the binary
28+
needs: build
29+
steps:
2230
- name: upload binary artifacts
2331
uses: actions/upload-artifact@v2
2432
with:

0 commit comments

Comments
 (0)