Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 52 additions & 38 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,74 @@ on:
pull_request:
branches: [ main ]

# Only one Pages deployment at a time.
concurrency:
group: pages
cancel-in-progress: false

jobs:
compile_industry:
runs-on: ubuntu-latest
strategy:
matrix:
# Add a track here (and tag the matching bullets in data.typ)
# to get it compiled automatically -- no other CI changes needed.
track: [eda, general]

steps:
- uses: actions/checkout@v2
- name: Industry CV Compilation
uses: dante-ev/latex-action@2021-A
with:
root_file: main.tex
working_directory: industry

- uses: actions/upload-artifact@master
with:
name: industry_cv
path: industry/main.pdf
- uses: actions/checkout@v4
- uses: typst-community/setup-typst@v5
- name: Compile ${{ matrix.track }} CV
working-directory: industry
run: typst compile --input track=${{ matrix.track }} main.typ ${{ matrix.track }}.pdf


compile_academic:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Academic CV Compilation
uses: dante-ev/latex-action@2021-A
with:
root_file: main.tex
working_directory: academic
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v4
with:
name: academic_cv
path: academic/main.pdf

name: industry_cv_${{ matrix.track }}
path: industry/${{ matrix.track }}.pdf

commit_compiled:
runs-on: ubuntu-latest
needs: [compile_industry, compile_academic]
needs: [compile_industry]
steps:
- uses: actions/checkout@v2
- name: Download Academic CV
uses: actions/download-artifact@master
with:
name: academic_cv
path: academic
- name: Download Industry CV
uses: actions/download-artifact@master
- uses: actions/checkout@v4
- name: Download Industry CVs
uses: actions/download-artifact@v4
with:
name: industry_cv
pattern: industry_cv_*
path: industry
merge-multiple: true
- name: Add and Commit
uses: EndBug/add-and-commit@v7.4.0
with:
add: '*/main.pdf --force'
add: 'industry/*.pdf --force'
author_name: 'github-actions[bot]'
author_email: 'github-actions[bot]@users.noreply.github.com'
message: 'Compiled'


deploy_pages:
# Only publish on pushes to main -- PR builds don't touch the live site.
if: github.event_name == 'push'
runs-on: ubuntu-latest
needs: [compile_industry]
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Download Industry CVs
uses: actions/download-artifact@v4
with:
pattern: industry_cv_*
path: site
merge-multiple: true
- name: Add landing page
run: cp pages/index.html site/index.html
- uses: actions/upload-pages-artifact@v3
with:
path: site
- uses: actions/deploy-pages@v4
id: deployment
Loading
Loading