From cad0f0ee52ec0929cdba976f454293e84596d5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= <106257713+leomurca@users.noreply.github.com> Date: Mon, 5 Feb 2024 12:15:32 -0300 Subject: [PATCH 1/4] Create deploy-pdf.yml --- .github/workflows/deploy-pdf.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy-pdf.yml diff --git a/.github/workflows/deploy-pdf.yml b/.github/workflows/deploy-pdf.yml new file mode 100644 index 0000000..92149a4 --- /dev/null +++ b/.github/workflows/deploy-pdf.yml @@ -0,0 +1,23 @@ +name: Compile Latex and Release PDF + +on: + push: + branches: [ "main" ] + +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + + - name: Set up Git repository + uses: actions/checkout@v3 + + - name: Compile LaTeX document + uses: xu-cheng/latex-action@v3 + with: + root_file: main.tex + - name: Upload PDF file + uses: actions/upload-artifact@v3 + with: + name: PDF + path: test-file-main.pdf From d948c96cae9301ee71abccb64e5304597516cbb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= <106257713+leomurca@users.noreply.github.com> Date: Mon, 5 Feb 2024 12:20:24 -0300 Subject: [PATCH 2/4] Update deploy-pdf.yml --- .github/workflows/deploy-pdf.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy-pdf.yml b/.github/workflows/deploy-pdf.yml index 92149a4..8657453 100644 --- a/.github/workflows/deploy-pdf.yml +++ b/.github/workflows/deploy-pdf.yml @@ -8,10 +8,8 @@ jobs: build_latex: runs-on: ubuntu-latest steps: - - name: Set up Git repository uses: actions/checkout@v3 - - name: Compile LaTeX document uses: xu-cheng/latex-action@v3 with: @@ -20,4 +18,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: PDF - path: test-file-main.pdf + path: main.pdf From 0a5bdecd099ddc795cc0c2718a207614b6b4f665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= <106257713+leomurca@users.noreply.github.com> Date: Mon, 5 Feb 2024 12:22:43 -0300 Subject: [PATCH 3/4] Update deploy-pdf.yml --- .github/workflows/deploy-pdf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pdf.yml b/.github/workflows/deploy-pdf.yml index 8657453..fbc0539 100644 --- a/.github/workflows/deploy-pdf.yml +++ b/.github/workflows/deploy-pdf.yml @@ -13,9 +13,9 @@ jobs: - name: Compile LaTeX document uses: xu-cheng/latex-action@v3 with: - root_file: main.tex + root_file: ../main.tex - name: Upload PDF file uses: actions/upload-artifact@v3 with: name: PDF - path: main.pdf + path: ../main.pdf From eff1abd1c7a669eb640636e001de39431e483934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= <106257713+leomurca@users.noreply.github.com> Date: Mon, 5 Feb 2024 13:44:43 -0300 Subject: [PATCH 4/4] Update deploy-pdf.yml --- .github/workflows/deploy-pdf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pdf.yml b/.github/workflows/deploy-pdf.yml index fbc0539..8657453 100644 --- a/.github/workflows/deploy-pdf.yml +++ b/.github/workflows/deploy-pdf.yml @@ -13,9 +13,9 @@ jobs: - name: Compile LaTeX document uses: xu-cheng/latex-action@v3 with: - root_file: ../main.tex + root_file: main.tex - name: Upload PDF file uses: actions/upload-artifact@v3 with: name: PDF - path: ../main.pdf + path: main.pdf