Skip to content

Commit 7c48246

Browse files
committed
Revert "Add draft for nix deployment"
This reverts commit 250066e.
1 parent 250066e commit 7c48246

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

.github/workflows/pages.yml

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

2626
jobs:
27+
# Single deploy job since we're just deploying
2728
build:
29+
name: Building and Deploying
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
2833
runs-on: ubuntu-latest
29-
3034
steps:
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-
35+
- uses: actions/checkout@master
36+
- uses: Bogdanp/setup-racket@v1.11
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
4054
- name: Upload artifact
4155
uses: actions/upload-pages-artifact@v3
4256
with:
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:
57+
# Upload ./output only
58+
path: './output'
5359
- name: Deploy to GitHub Pages
5460
id: deployment
5561
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)