Skip to content

Commit a1e0e16

Browse files
committed
Auto deploy
1 parent 00122aa commit a1e0e16

10 files changed

Lines changed: 52 additions & 39 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js 24
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '24.x'
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Build project
26+
run: npm run build
27+
28+
- name: Upload production-ready build files
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: production-files
32+
path: ./dist
33+
34+
deploy:
35+
name: Deploy
36+
needs: build
37+
runs-on: ubuntu-latest
38+
if: github.ref == 'refs/heads/main'
39+
40+
steps:
41+
- name: Download artifact
42+
uses: actions/download-artifact@v4
43+
with:
44+
name: production-files
45+
path: ./dist
46+
47+
- name: Deploy to GitHub Pages
48+
uses: peaceiris/actions-gh-pages@v4
49+
with:
50+
github_token: ${{ secrets.GITHUB_TOKEN }}
51+
publish_dir: ./dist
-14.3 KB
Binary file not shown.

docs/assets/index-B2Moe9JR.js

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

docs/assets/logo-Eg8uiIyy.png

-14 KB
Binary file not shown.

docs/assets/menu-0QwkpUIL.png

-41.6 KB
Binary file not shown.

docs/assets/text-D93SdtPq.png

-25.3 KB
Binary file not shown.

docs/assets/tiles-fjLyTWMU.png

-95.5 KB
Binary file not shown.

docs/index.html

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

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
content="user-scalable=no, width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
88
<meta name="theme-color" content="#222" />
99
<meta name="color-scheme" content="dark" />
10+
<title>Six 006 - Polymatic Example</title>
1011
</head>
1112

1213
<body>

vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export default {
22
base: '/polymatic-example-six/',
33
build: {
4-
outDir: 'docs',
54
}
65
}

0 commit comments

Comments
 (0)