Add resume PDF and auto-sync from rendercv output #37
This file contains hidden or 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
| name: Deploy site | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| paths: | |
| - "assets/**" | |
| - "_sass/**" | |
| - "_scripts/**" | |
| - "**.bib" | |
| - "**.html" | |
| - "**.js" | |
| - "**.liquid" | |
| - "**/*.md" | |
| - "**.yml" | |
| - "Gemfile" | |
| - "Gemfile.lock" | |
| - "pixi.toml" | |
| - "pixi.lock" | |
| - "requirements.txt" | |
| - "!.github/workflows/axe.yml" | |
| - "!.github/workflows/broken-links.yml" | |
| - "!.github/workflows/deploy-docker-tag.yml" | |
| - "!.github/workflows/deploy-image.yml" | |
| - "!.github/workflows/docker-slim.yml" | |
| - "!.github/workflows/lighthouse-badger.yml" | |
| - "!.github/workflows/prettier.yml" | |
| - "!lighthouse_results/**" | |
| - "!CONTRIBUTING.md" | |
| - "!CUSTOMIZE.md" | |
| - "!FAQ.md" | |
| - "!INSTALL.md" | |
| - "!README.md" | |
| pull_request: | |
| branches: | |
| - master | |
| - main | |
| paths: | |
| - "assets/**" | |
| - "_sass/**" | |
| - "_scripts/**" | |
| - "**.bib" | |
| - "**.html" | |
| - "**.js" | |
| - "**.liquid" | |
| - "**/*.md" | |
| - "**.yml" | |
| - "Gemfile" | |
| - "Gemfile.lock" | |
| - "pixi.toml" | |
| - "pixi.lock" | |
| - "requirements.txt" | |
| - "!.github/workflows/axe.yml" | |
| - "!.github/workflows/broken-links.yml" | |
| - "!.github/workflows/deploy-docker-tag.yml" | |
| - "!.github/workflows/deploy-image.yml" | |
| - "!.github/workflows/docker-slim.yml" | |
| - "!.github/workflows/lighthouse-badger.yml" | |
| - "!.github/workflows/prettier.yml" | |
| - "!lighthouse_results/**" | |
| - "!CONTRIBUTING.md" | |
| - "!CUSTOMIZE.md" | |
| - "!FAQ.md" | |
| - "!INSTALL.md" | |
| - "!README.md" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| # available images: https://github.com/actions/runner-images#available-images | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| - name: Install pixi 🦊 | |
| uses: prefix-dev/setup-pixi@v0.9.3 | |
| with: | |
| pixi-version: latest | |
| cache: true | |
| - name: Update _config.yml ⚙️ | |
| uses: fjogeleit/yaml-update-action@main | |
| with: | |
| commitChange: false | |
| valueFile: "_config.yml" | |
| propertyPath: "giscus.repo" | |
| value: ${{ github.repository }} | |
| - name: Install dependencies 📦 | |
| run: pixi run install | |
| - name: Build site 🔧 | |
| run: | | |
| export JEKYLL_ENV=production | |
| pixi run build | |
| - name: Purge unused CSS 🧹 | |
| run: pixi run purgecss | |
| - name: Deploy 🚀 | |
| if: github.event_name != 'pull_request' | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: _site |