Skip to content

Merge pull request #31 from damoun/dependabot/github_actions/actions/… #53

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

Merge pull request #31 from damoun/dependabot/github_actions/actions/… #53

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@834a144ee995460fba8ed112a2fc961b36a5ec5a # 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@fa0a91b85d4f404e444e00e005971372dc801d16 # 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