From 68e131c14cf9e77db1a951fb4c898bbd490eafae Mon Sep 17 00:00:00 2001 From: Andrey Kuzmin Date: Sat, 23 Mar 2024 18:24:53 +0100 Subject: [PATCH] Use nix for gh-pages --- .github/workflows/gh-pages.yml | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ace64a6..f5023f1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,33 +8,19 @@ jobs: gh-pages: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: git config --global user.name "Andrey Kuzmin" - - run: git config --global user.email "unsoundscapes@gmail.com" - - - uses: actions/setup-node@v1 - with: - node-version: "12" + - run: git config --global user.email "hi@unsoundscapes.com" - - uses: actions/cache@v2 + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v22 with: - path: | - ~/.npm - ~/.elm - elm-stuff - key: ${{ runner.os }}-cache - - - run: npm install -g elm@latest-0.19.1 elm-test@0.19.1-revision6 elm-review@2.5.0 elm-format@0.8.5 - - - run: elm-format --validate . - - - run: elm-review - - - run: elm-test + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix develop --command elm-format --validate . + - run: nix develop --command elm-review + - run: nix develop --command elm-test - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: gh-pages ref: gh-pages - - run: ./scripts/gh-pages.sh + - run: nix develop --command ./scripts/gh-pages.sh