Skip to content

Commit

Permalink
Create build-latex.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmpercussion authored Oct 31, 2024
1 parent a11c8ae commit 9e3f6d1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: Compile LaTeX to PDF

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# 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:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: |
papers/latex/nime-template.tex
music/latex/music-proceedings-template.tex
work_in_root_file_dir: true
- name: Upload paper file
uses: actions/upload-artifact@v4
with:
name: nime-paper
path: papers/latex/nime-template.pdf
- name: Upload music file
uses: actions/upload-artifact@v4
with:
name: nime-music
path: music/latex/music-proceedings-template.pdf

0 comments on commit 9e3f6d1

Please sign in to comment.