Skip to content

Commit 250066e

Browse files
committed
Add draft for nix deployment
1 parent 3000702 commit 250066e

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

.github/workflows/pages.yml

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,32 @@ concurrency:
2424
cancel-in-progress: true
2525

2626
jobs:
27-
# Single deploy job since we're just deploying
2827
build:
29-
name: Building and Deploying
30-
environment:
31-
name: github-pages
32-
url: ${{ steps.deployment.outputs.page_url }}
3328
runs-on: ubuntu-latest
29+
3430
steps:
35-
- uses: actions/checkout@master
36-
- uses: Bogdanp/[email protected]
37-
with:
38-
architecture: 'x64'
39-
distribution: 'full'
40-
variant: 'CS'
41-
version: '8.11'
42-
- uses: actions/cache@v4
43-
with:
44-
path: |
45-
~/.cache/racket
46-
~/.local/share/racket
47-
key: ${{ runner.os }}-racket-current-${{ hashFiles('.racket-version') }}
48-
- run: raco pkg install --auto --skip-installed pollen string-interpolation
49-
- run: mkdir output
50-
- run: raco pollen render
51-
- run: cp -r assets *.html *.css *.js output
52-
- name: Setup Pages
53-
uses: actions/configure-pages@v2
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
34+
- name: Setup Nix
35+
uses: cachix/install-nix-action@v27
36+
37+
- name: Build site
38+
run: nix build
39+
5440
- name: Upload artifact
5541
uses: actions/upload-pages-artifact@v3
5642
with:
57-
# Upload ./output only
58-
path: './output'
43+
path: result # Ensure this is the correct output directory
44+
45+
deploy:
46+
needs: build
47+
runs-on: ubuntu-latest
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
52+
steps:
5953
- name: Deploy to GitHub Pages
6054
id: deployment
6155
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)