Skip to content

Commit

Permalink
add yml to .github folder for nightly.link
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewacarson committed Jul 19, 2024
1 parent 72f9857 commit 7a92279
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Latex document

# Controls when the action will run.
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
create:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: aanda.tex
- uses: actions/upload-artifact@v3
with:
name: PDF
path: aanda.pdf
- name: Upload binaries to release
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: aanda.pdf
asset_name: aanda_$tag.pdf
tag: ${{ github.ref }}
overwrite: true
body: "Automatic release through Github Actions"

0 comments on commit 7a92279

Please sign in to comment.