-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (46 loc) · 1.14 KB
/
branch.yaml
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
name: branch
on:
pull_request:
branches:
- "main"
push:
branches:
- "*"
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: '1.15'
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: Setup helm
run: |
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
helm version
- name: Checkout
uses: actions/checkout@v3
- name: Setup jsonnet
run: |
export GO111MODULE=on
export GOPATH="${HOME}/go"
export PATH="${GOPATH}/bin:${PATH}"
make build-deps
- name: Build
run: |
export GOPATH="${HOME}/go"
export PATH="${GOPATH}/bin:${PATH}"
make all
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: startsWith(github.ref, 'refs/tags/')
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
enable_jekyll: false
keep_files: true