-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.54 KB
/
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
44
45
46
47
48
49
50
51
52
53
on: [push, pull_request]
name: Render and Publish
permissions:
contents: write
pages: write
jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libssl-dev
- uses: r-lib/actions/setup-r@v2
- uses : r-lib/actions/setup-pandoc@v1
with:
r-version: '4.1.0'
pandoc-version: '2.14'
- name: Build the poster
run: make install && make all && mkdir website && mv poster.html website/index.html && touch website/.nojekyll
- name: Upload PDF
uses: actions/upload-artifact@v1
with:
name: poster
path: poster.pdf
- name: Commit poster PDF
if: github.event.pull_request.merged == true
uses: EndBug/add-and-commit@v9
with:
add: 'poster.pdf'
author_name: 'GitHub Actions'
message: 'Add poster.pdf at ${{ github.sha }}'
- name: Deploy html to gh-pages
if: github.event.pull_request.merged == true
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: ${{github.workspace}}/website