-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.2 KB
/
pandoc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build resume
on:
push:
branches:
- main
permissions:
contents: write
id-token: write
pages: 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 --standalone --css=styling.css -o resume.pdf
- name: Convert Markdown to DOCX
run: pandoc resume.md --standalone --css=styling.css -o resume.docx
- name: Convert Markdown to HTML
run: pandoc resume.md --standalone --css=styling.css -o index.html
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: github-pages
path: '.'
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: .
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .