forked from rename-this/vhs
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 1.28 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: main
on:
push:
branches:
- main
jobs:
build:
name: build
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Go
id: go-cache
uses: actions/[email protected]
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys:
${{ runner.os }}-go-
- name: test
run: |
sudo apt install -y bash libpcap-dev jq
make test-host
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: vcr-bot
password: ${{ secrets.GHCR_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}
docs:
name: docs
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: true
-
name: Set up environment
run: |
make init
-
name: Publish Site
uses: chabad360/hugo-gh-pages@master
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
siteDir: /github/workspace/site