Skip to content

Commit

Permalink
ci: deploy elm site optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
imincik committed Jan 27, 2024
1 parent 3414bd7 commit 1cfc860
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/configure-pages@v4

- name: Build website
run: nix develop --accept-flake-config --impure --command make-elm-site
run: nix develop --accept-flake-config --impure --command make-elm-site-prod

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
8 changes: 6 additions & 2 deletions geonix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ in
pkgs.fswatch
];

scripts.develop-elm-site.exec = ''
fswatch -o src/HomePage.elm | xargs -I{} elm make src/HomePage.elm --output src/elm.js
'';

scripts.make-elm-site.exec = ''
elm make src/HomePage.elm --output src/elm.js
'';

scripts.develop-elm-site.exec = ''
fswatch -o src/HomePage.elm | xargs -I{} elm make src/HomePage.elm --output src/elm.js
scripts.make-elm-site-prod.exec = ''
elm make src/HomePage.elm --optimize --output src/elm.js
'';

languages.elm.enable = true;
Expand Down

0 comments on commit 1cfc860

Please sign in to comment.