Skip to content

Merge branch 'main' of github.com:lehmanator/resume.nix #23

Merge branch 'main' of github.com:lehmanator/resume.nix

Merge branch 'main' of github.com:lehmanator/resume.nix #23

Workflow file for this run

---
name: Build & Deploy Nix Artifacts
on:
workflow_dispatch:
push:
branches: ["main"]
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
diagnostic-endpoint: ""
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
diagnostic-endpoint: ""
upstream-cache: https://lehmanator.cachix.org
use-flakehub: false
use-gha-cache: true
- uses: DeterminateSystems/flake-checker-action@main
with:
send-statistics: false
build:
needs: checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
diagnostic-endpoint: ""
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
diagnostic-endpoint: ""
upstream-cache: https://lehmanator.cachix.org
use-flakehub: false
use-gha-cache: true
- id: build-html
name: Build flake packages.default
run: nix build
- uses: actions/upload-pages-artifact@v3
with:
name: html
path: './result/index.html'
- id: build-pdf
name: Build PDF
run: 'nix run .#pdf -- resume.pdf'
- uses: actions/upload-pages-artifact@v3
with:
name: pdf
path: './resume.pdf'
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Setup Pages
uses: actions/configure-pages@v4
# - name: Upload resume HTML artifact
# uses: actions/upload-pages-artifact@v3
# with:
# name: html
# # path: "result/index.html"
# - name: Upload resume PDF artifact
# uses: actions/upload-pages-artifact@v3
# with:
# name: pdf
# #path: "resume.pdf"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4