added continuous deployment for the thesis build
This commit is contained in:
32
.github/workflows/cd.yaml
vendored
Normal file
32
.github/workflows/cd.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: cd
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
cd:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
env:
|
||||
BRANCH: gh-pages
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node: [14]
|
||||
|
||||
steps:
|
||||
- name: Checkout 🛎
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Build thesis ⚙️
|
||||
run: pdflatex --output-directory=./out thesis.tex
|
||||
|
||||
- name: Deploy application 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
||||
BRANCH: ${{ env.BRANCH }}
|
||||
FOLDER: out
|
||||
Reference in New Issue
Block a user