-
Notifications
You must be signed in to change notification settings - Fork 13
28 lines (24 loc) · 1.02 KB
/
deploy.yml
File metadata and controls
28 lines (24 loc) · 1.02 KB
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
name: Build and Deploy
on:
push:
branches: [ main, master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Build document 🔧
run: make server
- uses: docker://pandoc/core:2.9
with:
args: "-o dst/index.html --template src/template/index.html -H src/header.html -V lang=en -s --table-of-contents --bibliography=src/references.bib --columns 1000 dst/index.md"
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dst # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch