-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
51 lines (42 loc) · 1.13 KB
/
deploy.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
name: Deploy Site
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Build theme with node
run: |
cd ${{ github.workspace }}/site/_themes
yarn install --frozen-lockfile
yarn build
rm -rf ../assets/js/themes
mv dist/themes.html ../_includes/themes.html
mv dist ../assets/js/themes
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: Build page with Jekyll
run: bundle exec jekyll build
- name: Checkout gh-pages branch
uses: actions/checkout@v3
with:
ref: 'gh-pages'
path: './gh-pages'
- name: Move versions to _gh_pages
run: |
mv gh-pages/versions _gh_pages
rm -rf gh-pages
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages
folder: _gh_pages