-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (47 loc) · 1.33 KB
/
gh-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: GitHub Pages
on:
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2
# with:
# submodules: true
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-${{ hashFiles('package-lock.json') }}
npm-
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.119.0'
# extended: true
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install Tools
run: npm install -g postcss-cli autoprefixer
- name: NPM install
run: |
npm config set "@skymatic:registry" https://npm.pkg.github.com/
npm config set '//npm.pkg.github.com/:_authToken' "${{ secrets.FONTAWESOME_AUTH_TOKEN }}"
npm install
- name: Build
run: hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: main
cname: cryptomator.org