Update resume.md #100
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
on: [push] | |
jobs: | |
publish_resume: | |
runs-on: ubuntu-latest | |
name: Build and publish resume in html pdf docx and rtf | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: rlespinasse/[email protected] | |
- uses: docker://tdhopper/pandoc-context:latest | |
with: | |
args: >- | |
-c make | |
- name: rename html | |
run: mv output/resume.html output/index.html | |
- name: rename pdf | |
run: mv output/resume.pdf output/tim-hopper-resume.pdf | |
- name: Publish production to netlify | |
uses: netlify/actions/cli@master | |
with: | |
args: deploy --dir=./output --timeout 30 --prod | |
if: env.GITHUB_REF_SLUG == 'master' | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
- name: Publish preview to netlify | |
uses: netlify/actions/cli@master | |
with: | |
args: deploy --dir=./output --timeout 30 --alias ${{ env.GITHUB_REF_SLUG }} | |
if: env.GITHUB_REF_SLUG != 'master' | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |