forked from codemicro/readingList
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 827 Bytes
/
build.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
name: Build site
on:
workflow_dispatch:
workflow_call:
push:
paths:
- "readingList.csv"
- "generator.go"
concurrency: # Prevent two instances of this running at once
group: deploy-to-ghpages
cancel-in-progress: true
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Run generator
run: go run github.com/manuelmazzuola/readingList generateSite
- name: Deploy
uses: peaceiris/[email protected]
env:
PUBLISH_DIR: .site
PUBLISH_BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}