Update #8
This file contains 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: Convert resume | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y pandoc texlive texlive-xetex | |
- name: Convert Markdown to PDF | |
run: pandoc resume.md -o resume.pdf --pdf-engine=xelatex | |
- name: Convert Markdown to DOCX | |
run: pandoc resume.md -o resume.docx | |
- name: Convert Markdown to HTML | |
run: pandoc resume.md -o index.html | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: github-pages | |
path: | | |
resume.pdf | |
resume.docx | |
index.html | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: github-pages | |
path: ./output | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output |