Skip to content

Commit 0507d59

Browse files
committed
Update deploy action
1 parent 09e884d commit 0507d59

3 files changed

Lines changed: 4 additions & 24 deletions

File tree

.github/workflows/deploy_neocities.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,33 +33,13 @@ jobs:
3333
# with:
3434
# version: 8
3535

36-
- name: Install Node.js
37-
uses: actions/setup-node@v4
38-
with:
39-
node-version: 20
40-
cache: npm
41-
42-
- name: Install dependencies
43-
run: npm install
44-
# - name: Install wasm-pack
45-
# uses: jetli/wasm-pack-action@v0.4.0
46-
# with:
47-
# version: 'latest'
48-
4936
- name: build
37+
uses: cachix/install-nix-action@v31
5038
env:
5139
BASE_PATH: '/${{ github.event.repository.name }}'
5240
run: |
53-
npm run build
54-
- name: Authenticate
55-
uses: oleksiyrudenko/gha-git-credentials@v2-latest
56-
with:
57-
token: '${{ secrets.GITHUB_TOKEN }}'
58-
- name: Commit changes
59-
run: |
60-
git add -A
61-
git commit -m "Automatically build site"
62-
git push
41+
nix build
42+
# cp result/* public/
6343
6444
# deploy:
6545
# needs: build_site

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules
77
!.env.example
88
vite.config.js.timestamp-*
99
vite.config.ts.timestamp-*
10+
/result

result

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)