-
-
Notifications
You must be signed in to change notification settings - Fork 578
36 lines (36 loc) · 1.02 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
name: deploy
on: [push, pull_request]
permissions:
contents: write
jobs:
deploy:
name: "Build and Deploy"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive # for _tools/fopub/
- name: setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- uses: reitzig/[email protected]
- name: Install
run: yarn install && bundle install --path vendor/bundle
- name: Build
run: |
make html
make pdf
"./_tools/check-to-deploy.sh"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
exclude_assets: '.github,**/.gitignore,node_modules,.bundle,.netlify,_tools' # .gitignoreを無視する