-
Notifications
You must be signed in to change notification settings - Fork 39
39 lines (34 loc) · 1.12 KB
/
site-preview.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
name: Site Preview
on:
pull_request:
paths:
- 'site/**'
env:
ARTIFACT_NAME: BUILD_LOG
NIX_VERSION: nix-2.14.1
NIXPKGS_CHANNEL: nixos-22.11
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
preview:
# temporarily disable
if: ${{ false }}
runs-on: beefy-runner
outputs:
preview-url: ${{ steps.publish-preview.outputs.preview-url }}
permissions: write-all
steps:
- uses: actions/checkout@v3
with:
lfs: true
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:${{ env.NIXPKGS_CHANNEL }}
github_access_token: ${{ github.token }}
extra_nix_config: |
trusted-public-keys = union.cachix.org-1:TV9o8jexzNVbM1VNBOq9fu8NK+hL6ZhOyOh0quATy+M= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://union.cachix.org/ https://cache.nixos.org/
- run: |
nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_CHANNEL }} nixpkgs
nix-channel --update