-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1008 Bytes
/
build.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
on:
push:
branches:
- master
name: Build html
jobs:
Build_deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: r-lib/actions/setup-pandoc@v1
with:
pandoc-version: '2.7.3'
- uses: r-lib/actions/setup-r@v1
with:
r-version: '3.6.0'
- name: Install dependencies
run: make install
- name: build html
run: make
- name: prepare deployment
run: make deploy
- name: Deploy gh_pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: slides
SINGLE_COMMIT: true
- name: Trigger next workflow
if: success()
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_GHA_PAT }}
repository: ${{ github.repository }}
event-type: trigger-build_pdf