-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.14 KB
/
ci.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
name: Build and deploy to github pages
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get the latest release
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'danielpancake-website-gen-x86_64_linux'
- name: Generate website
run: |
chmod +x ./danielpancake-website-gen-x86_64_linux
./danielpancake-website-gen-x86_64_linux rebuild -v
- name: Install HTML tidy
run: |
sudo apt-get install tidy
- name: Tidy HTML
continue-on-error: true
# exit code 1 returned by tidy on warns upsets the workflow
run: |
cd _site
tidy -utf8 -imq -w 210 --drop-empty-elements no --tidy-mark no index.html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/master'
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: danielpancake-pages
folder: _site
clean: true