Update #4
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 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Convert Markdown to PDF | |
uses: docker://pandoc/latex:latest | |
with: | |
args: resume.md -o resume.pdf | |
- name: Convert Markdown to DOCX | |
uses: docker://pandoc/latex:latest | |
with: | |
args: resume.md -o resume.docx | |
- name: Convert Markdown to HTML | |
uses: docker://pandoc/latex:latest | |
with: | |
args: resume.md -o index.html | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: resume-files | |
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@v3 | |
with: | |
name: resume-files | |
path: ./output | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |