-
-
Notifications
You must be signed in to change notification settings - Fork 71
49 lines (49 loc) · 1.56 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
name: Deploy
on:
push:
branches:
- 'develop'
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: 'true'
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: yarn install
- name: Test
run: npm run test:ci
- name: Build
run: npm run build
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.8
- name: Bundle install
run: bundle install
- name: Build Jekyll
run: bundle exec jekyll build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/develop'
with:
github_token: ${{ secrets.SHARED_BOT_GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: master
# - uses: jeffreytse/[email protected]
# with:
# provider: 'github'
# token: ${{ secrets.SHARED_BOT_GITHUB_TOKEN }} # rss-to-twitter require PAT for page_build event
# branch: 'master' # Default is gh-pages for github provider
# jekyll_src: './' # Default is root directory
# jekyll_cfg: '_config.yml' # Default is _config.yml
# jekyll_baseurl: '' # Default is according to _config.yml
# bundler_ver: '~>2.4.0' # Default is latest bundler version
# cname: 'jser.info' # Default is to not use a cname