-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.15 KB
/
linux-build-deploy.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
name: Automated Ascent Website
on:
push:
branches:
- master
jobs:
build-deploy:
name: Build and Deploy
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.84.0'
- name: Setup Link Verifier
run: |
wget https://github.com/bmuschko/link-verifier/releases/download/v0.7/link-verifier-0.7-linux-amd64.tar.gz -O /tmp/link-verifier.tar.gz
tar -xvf /tmp/link-verifier.tar.gz
export PATH=$PATH:$PWD/link-verifier/
# - name: Verify links
# run: ./link-verifier --dirs layouts --includes *.html --ignore-status-codes 999,400,429,403 --timeout 90
- name: Build
run: |
hugo
echo automatedascent.com >> public/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public