-
Notifications
You must be signed in to change notification settings - Fork 14
56 lines (51 loc) · 1.17 KB
/
deploy-pages.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
name: Deploy Pages
on:
workflow_dispatch:
#push:
# branches:
# - main
#schedule:
# - cron: "1 * * * *" # every one hour
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.117.0
permissions:
contents: write
steps:
- name: Setup Hugo
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
id: pages
uses: actions/configure-pages@v1
- name: Build
run: |
npm ci
make website
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OUTPUT_BASE_URL: ${{ steps.pages.outputs.base_url }}
- name: Upload Data Aggregates
# Used for local debugging
if: (failure() || success())
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
./artifacts