Skip to content

Commit a09d736

Browse files
committed
Create release workflow
1 parent 075b5fc commit a09d736

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

.github/workflows/go.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,3 @@ jobs:
2323

2424
- name: Test
2525
run: go test -v ./...
26-
27-
- name: xcaddy
28-
run: go get github.com/caddyserver/xcaddy/cmd/xcaddy@latest
29-
30-
- name: xcaddy-build
31-
run: xcaddy build --with github.com/golevi/cache-handler

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
name: Build the binaries
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Xcaddy
17+
run: go get github.com/caddyserver/xcaddy/cmd/xcaddy@latest
18+
19+
- name: Build
20+
run: xcaddy build --with github.com/golevi/cache-handler
21+
22+
- name: upload binary artifacts
23+
uses: actions/upload-artifact@v2
24+
with:
25+
name: binaries
26+
path: release/

0 commit comments

Comments
 (0)