2022-06-10 03:59:24 +01:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: cv-build
|
|
|
|
|
|
|
|
# Controls when the workflow will run
|
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the "master" branch
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
|
|
|
# This workflow contains a single job called "build"
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Git repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Compile LaTeX document
|
|
|
|
uses: xu-cheng/latex-action@v2
|
|
|
|
with:
|
2022-06-10 04:03:04 +01:00
|
|
|
working_directory: cv
|
|
|
|
root_file: main.tex
|
2022-06-10 04:11:31 +01:00
|
|
|
- name: Move built .pdf
|
2022-06-10 03:59:24 +01:00
|
|
|
run: |
|
|
|
|
mv cv/main.pdf ./cv.pdf
|
|
|
|
- name: Commit built .pdf
|
2022-06-10 04:11:31 +01:00
|
|
|
uses: EndBug/add-and-commit@v9
|
2022-06-10 03:59:24 +01:00
|
|
|
with:
|
|
|
|
add: 'cv.pdf'
|
|
|
|
author_name: 'Jack Bond-Preston'
|
|
|
|
author_email: 'jackbondpreston@outlook.com'
|
2022-06-10 04:11:31 +01:00
|
|
|
message: '[github action] update cv.pdf'
|
2022-06-10 03:59:24 +01:00
|
|
|
|