-
Notifications
You must be signed in to change notification settings - Fork 233
38 lines (36 loc) · 994 Bytes
/
build.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
name: build
on:
workflow_dispatch:
pull_request:
push:
jobs:
build:
if: github.repository == 'mikepqr/resume.md'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Install markdown
run: pip3 install markdown
- name: Make resume
run: python3 resume.py --debug
- name: Rename output
if: ${{ matrix.os != 'windows-latest' }}
run: |
mv resume.pdf resume_$RUNNER_OS.pdf
mv resume.html resume_$RUNNER_OS.html
- name: Rename output (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
mv resume.pdf resume_windows.pdf
mv resume.html resume_windows.html
- name: Archive resume.html and resume.pdf
uses: actions/upload-artifact@v2
with:
path: |
*.pdf
*.html