diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/deploy.yaml | 12 | ||||
| -rw-r--r-- | .github/workflows/format.yaml | 11 |
2 files changed, 9 insertions, 14 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 34a8c38..f1d9155 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -17,13 +17,13 @@ jobs: steps: - uses: actions/checkout@v3 - - name: setup deno - uses: denoland/setup-deno@v1 - with: - deno-version: v1.31.3 + - name: install Nix + uses: cachix/install-nix-action@v20 - name: build site - run: deno task build + run: | + nix shell nixpkgs#{bash,nodejs,nodePackages.yarn} \ + --command bash -c 'yarn install -D && yarn build' - name: setup pages uses: actions/configure-pages@v3 @@ -31,7 +31,7 @@ jobs: - name: upload artifact uses: actions/upload-pages-artifact@v1 with: - path: "_site" + path: "dist" - name: deploy id: deployment diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index aeb8118..7610e0b 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -14,17 +14,12 @@ jobs: - name: checkout repository uses: actions/checkout@v3 - - name: setup node - uses: actions/setup-node@v3 - - - name: install prettier - run: | - npm install -g prettier + - name: install Nix + uses: cachix/install-nix-action@v20 - name: format run: | - prettier --editorconfig -w --parser html ./**/*.njk - prettier --editorconfig -w . + nix run nixpkgs#nodePackages.prettier -- --editorconfig -w . - name: add and commit uses: EndBug/add-and-commit@v9 |
