-
-
Notifications
You must be signed in to change notification settings - Fork 42
32 lines (27 loc) · 822 Bytes
/
Copy pathdeploy.yml
File metadata and controls
32 lines (27 loc) · 822 Bytes
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
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
node-version: 14
steps:
- uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: ${{ env.node-version }}
- run: npm i
- run: npm run lint
- run: npm run build
- run: cp -p --remove-destination node_modules/imagesloaded/imagesloaded.pkgd.min.js _site/slate/js/lib/imagesloaded.min.js
- run: cp -p --remove-destination node_modules/jquery/dist/jquery.min.js _site/slate/js/lib/
- run: cp -p --remove-destination node_modules/lunr/lunr.min.js _site/slate/js/lib/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site