generated from fortran-lang/fortran-forum-article-template
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.3 KB
/
CI.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
name: CI
on: [push, pull_request]
jobs:
Build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt update
sudo apt install texlive-latex-recommended texlive-latex-extra texlive-science python3.11
wget https://github.com/jgm/pandoc/releases/download/3.1.8/pandoc-3.1.8-1-amd64.deb && sudo dpkg -i pandoc-3.1.8-1-amd64.deb && rm -f pandoc-3.1.8-1-amd64.deb
sudo python3.11 -m pip install codespell git+https://github.com/veneres/py-pandoc-include-code.git
- name: Render Paper
run: |
make
- name: Save Paper
uses: actions/upload-artifact@v2
with:
name: Paper
path: paper.pdf
if-no-files-found: error
- name: Check Spelling
run: make check-spelling
- name: Prepare for Deployment
run: |
mkdir -p public
mv paper.pdf public
cd public && tree -i -H '.' -L 1 --noreport --charset utf-8 -I "*.html" -T "Download a Copy" > index.html
- name: Deploy to GitHub Pages
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: public