summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-16 03:53:24 -0400
committerseth <[email protected]>2023-05-16 04:08:37 -0400
commit681cd8c1cc2904c562f9a58db3cbb657d58fb552 (patch)
tree9255f71e577fc82f079c16ff493f432ca5557284 /.github/workflows
parentbf4df962be338c08ae41bed94b1d60b2930fca9f (diff)
feat: rewrite with astro
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy.yaml12
-rw-r--r--.github/workflows/format.yaml11
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