Skip to content

Commit 661f104

Browse files
author
Sebi Nemeth
committed
move build to github
1 parent d22158d commit 661f104

File tree

5 files changed

+15
-98
lines changed

5 files changed

+15
-98
lines changed

.github/workflows/pages.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,31 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
# Single deploy job no building
11-
deploy:
12-
environment:
13-
name: github-pages
14-
url: ${{steps.deployment.outputs.page_url}}
10+
build:
1511
runs-on: ubuntu-latest
1612
steps:
1713
- name: Checkout
1814
uses: actions/checkout@v4
1915
- name: Setup Pages
2016
uses: actions/configure-pages@v3
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: '20.x'
21+
- run: npm ci
22+
- run: npm run build:demo
2123
- name: Upload Artifact
2224
uses: actions/upload-pages-artifact@v2
2325
with:
24-
# upload entire directory
2526
path: './dist-demo'
27+
28+
deploy:
29+
environment:
30+
name: github-pages
31+
url: ${{steps.deployment.outputs.page_url}}
32+
runs-on: ubuntu-latest
33+
needs: build
34+
steps:
2635
- name: Deploy to GitHub Pages
2736
id: deployment
2837
uses: actions/deploy-pages@v2

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
npm run build
5-
npm run build:demo
65
git add -A dist
7-
git add -A dist-demo

dist-demo/assets/index-1sJnehzo.css

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

dist-demo/assets/index-o1xYSRhY.js

Lines changed: 0 additions & 76 deletions
This file was deleted.

dist-demo/index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)