-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 1.02 KB
/
site.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
name: github pages
on: [workflow_dispatch]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
submodules: recursive # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/[email protected]
with:
hugo-version: "latest"
extended: true
- name: Setup npm
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Install npm modules
working-directory: ./site
run: |
npm i
- name: Build
working-directory: ./site
run: hugo --minify -b https://privateer.github.io/
- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site/public