wf #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: LateX to PDF | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| - ops | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build_latex: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Git repository | |
| uses: actions/checkout@v2 | |
| - name: Get current date | |
| id: date | |
| run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | |
| - name: Compile LaTeX to PDF | |
| run: docker run --rm -i -v $(pwd):/data mingc/latex pdflatex main.tex | |
| - name: Rename PDF with date | |
| run: mv main.pdf resume-${{ env.date }}.pdf | |
| - name: Upload PDF to the workflow tab | |
| id: upload-workflow-tab | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: output | |
| path: resume-${{ env.date }}.pdf |