Skip to content

Commit

Permalink
Update build_latex.yml
Browse files Browse the repository at this point in the history
Added automatic run at midnight
Changed .pdf file to matt_carson_cv.pdf
  • Loading branch information
matthewacarson authored Jul 19, 2024
1 parent 7a92279 commit 6ddc98b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build_latex.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Latex document
name: Build LaTeX document

# Controls when the action will run.
on:
Expand All @@ -7,6 +7,8 @@ on:
pull_request:
branches: [ main ]
create:
schedule:
- cron: '0 0 * * *' # Runs at midnight every day

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -19,21 +21,25 @@ jobs:
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
root_file: matt_carson_cv.tex

- name: Upload PDF as artifact
uses: actions/upload-artifact@v3
with:
name: PDF
path: aanda.pdf
path: matt_carson_cv.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
file: matt_carson_cv.pdf
asset_name: matt_carson_cv_$tag.pdf
tag: ${{ github.ref }}
overwrite: true
body: "Automatic release through Github Actions"

0 comments on commit 6ddc98b

Please sign in to comment.