41 lines
748 B
YAML
41 lines
748 B
YAML
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 ⚙️
|
||
uses: repaction/texlive@main
|
||
with:
|
||
root_file: thesis.tex
|
||
|
||
- name: Prepare files 🗄
|
||
run: ️️|
|
||
mkdir dist
|
||
cp main.pdf dist/index.pdf
|
||
ls dist
|
||
|
||
- name: Deploy application 🚀
|
||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||
with:
|
||
GITHUB_TOKEN: ${{ github.TOKEN }}
|
||
BRANCH: ${{ env.BRANCH }}
|
||
FOLDER: dist
|