Skip to content

Commit

Permalink
Copy GitHub deploy result to non-symlink dir
Browse files Browse the repository at this point in the history
deploy-pages@v4 complains if anything is a symlink. `nix build`
creates `result` which is a symlink into the `/nix/store`.
  • Loading branch information
marcuswhybrow committed Apr 27, 2024
1 parent 9744ed6 commit 4ab052f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ jobs:
extra_nix_config: experimental-features = nix-command flakes
- uses: DeterminateSystems/magic-nix-cache-action@v4
- run: nix build
- run: mkdir github-pages
- run: cp -r ./result/* ./github-pages
- uses: actions/upload-artifact@v4
with:
name: github-pages
path: result
path: github-pages

deploy:
environment:
Expand Down

0 comments on commit 4ab052f

Please sign in to comment.