-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (53 loc) · 1.72 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build & Deploy Nix Artifacts
on:
workflow_dispatch:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
# Disable telemetry
diagnostic-endpoint: ""
#nix_path: nixpkgs=channel:nixos-unstable
- name: Use binary cache
uses: DeterminateSystems/magic-nix-cache-action@main
with:
# Disable telemetry
diagnostic-endpoint: ""
# Use my binary cache (uses cache.nixos.org upstream)
upstream-cache: https://lehmanator.cachix.org
#flakehub-api-server: https://api.flakehub.com
#flakehub-cache-server: https://cache.flakehub.com
#flakehub-flake-name: jsonresume-nix
#listen: "127.0.0.1:37515"
use-flakehub: false
use-gha-cache: true
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@main
with:
# Disable telemetry
send-statistics: false
- name: Build flake outputs
run: nix build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload resume HTML artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./result/index.html"
- name: Upload resume assets artifacts
uses: actions/upload-pages-artifact@v3
with:
path: "./result/photo.png"
- name: Upload resume PDF artifacts
uses: actions/upload-pages-artifact@v3
with:
path: "./result/resume.pdf"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4