Skip to content

Merge pull request #22 from damoun/dependabot/github_actions/actions/… #48

Merge pull request #22 from damoun/dependabot/github_actions/actions/…

Merge pull request #22 from damoun/dependabot/github_actions/actions/… #48

Workflow file for this run

name: build
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build_latex:
name: "Build 📦️"
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Compile english resume
uses: xu-cheng/latex-action@v3
with:
root_file: damien-plenard.en.tex
latexmk_use_xelatex: true
- name: Upload artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
with:
name: resume
path: damien-plenard.*.pdf
if-no-files-found: error
deploy_pages:
name: "Deploy 🚀"
needs: build_latex
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Download artifact
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4
with:
name: resume
path: resume
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: resume
- name: Deploy 🚀
if: success()
id: deployment
uses: actions/deploy-pages@main