Skip to content

Commit b77b108

Browse files
committed
Build and deploy site using Github Actions
1 parent 619d099 commit b77b108

File tree

8 files changed

+44
-279
lines changed

8 files changed

+44
-279
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ trim_trailing_whitespace = true
88
tab_width = 4
99
indent_size = 4
1010
indent_style = space
11+
12+
[*.{yaml,yml}]
13+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and deploy to Github Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build-and-deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout source
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Build site
28+
run: npm run build
29+
30+
- name: Upload artifacts
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
name: "github-pages"
34+
path: docs
35+
36+
- name: Deploy
37+
uses: actions/deploy-pages@v4
38+
with:
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
artifact-name: "github-pages"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ lerna-debug.log*
1010
node_modules
1111
dist
1212
dist-ssr
13+
docs
1314
*.local
1415

1516
# Editor directories and files

docs/assets/index.css

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

docs/assets/index.js

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

docs/favicon.png

-4.8 KB
Binary file not shown.

docs/index.html

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

docs/logo.png

-31.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)