Add action to build and deploy.
This commit is contained in:
parent
82bcde300f
commit
0b4ad3fbde
1 changed files with 33 additions and 0 deletions
33
.forgejo/workflows/deploy.yml
Normal file
33
.forgejo/workflows/deploy.yml
Normal file
|
@ -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/
|
Loading…
Add table
Reference in a new issue