From 0b4ad3fbde79e132263954131f9966b0fa2a2d3e Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 19 Feb 2025 11:50:13 -0600 Subject: [PATCH] Add action to build and deploy. --- .forgejo/workflows/deploy.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..946a0ba --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,33 @@ +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: Build + uses: https://github.com/xu-cheng/latex-action@v3 + with: + root_file: resume.tex + - name: Save artifact + uses: actions/upload-artifact@v3 + with: + name: output + path: resume.pdf + if-no-files-found: error + retention-days: 1 + + deploy: + runs-on: native + needs: build + steps: + - name: Restore artifact + uses: actions/download-artifact@v3 + with: + name: output + - name: deploy + run: cp resume.pdf /var/www/staging.thewordnerd.info/