From 6ddc98bd7721a484975238ff55a9eb1d9fd0dc51 Mon Sep 17 00:00:00 2001 From: Matt Carson Date: Fri, 19 Jul 2024 10:14:55 -0700 Subject: [PATCH] Update build_latex.yml Added automatic run at midnight Changed .pdf file to matt_carson_cv.pdf --- .github/workflows/build_latex.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_latex.yml b/.github/workflows/build_latex.yml index 459e2ab..ab72367 100644 --- a/.github/workflows/build_latex.yml +++ b/.github/workflows/build_latex.yml @@ -1,4 +1,4 @@ -name: Build Latex document +name: Build LaTeX document # Controls when the action will run. on: @@ -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: @@ -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"