-
Notifications
You must be signed in to change notification settings - Fork 26
49 lines (39 loc) · 1.11 KB
/
site.yaml
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
name: Site
on:
push:
branches:
- main
env:
NODE: 16.x
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.repository == 'typo3/typo3.icons'
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '${{ env.NODE }}'
- name: Set up cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- name: Install
run: npm ci
- name: Build icons
run: npm run icons-build
- name: Build site
run: npm run site-build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
allow_empty_commit: false
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_site/