Skip to content

Commit 1df3c02

Browse files
author
igyfhc
committed
main.yml
1 parent b2daa12 commit 1df3c02

File tree

5 files changed

+51
-61
lines changed

5 files changed

+51
-61
lines changed

.apps/tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"scripts": {
55
"dev": "vite",
6-
"build": "vite build"
6+
"build": "vite build --emptyOutDir"
77
},
88
"devDependencies": {
99
"@vitejs/plugin-vue": "^5.2.1",

.apps/tools/vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ export default defineConfig({
2323
}),
2424
],
2525
base: '/tools/',
26+
build: {
27+
outDir: import.meta.dirname + '/../../.deploy/tools',
28+
},
2629
});

.github/workflows/build-blog.yml

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

.github/workflows/deploy.yml

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

.github/workflows/main.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: main
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 23
18+
- name: Setup Pages
19+
uses: actions/configure-pages@v4
20+
- name: Build Blog
21+
working-directory: .apps/blog
22+
run: |
23+
npm ci
24+
npm run docs:build
25+
- name: Build Tools
26+
working-directory: .apps/tools
27+
run: |
28+
npm ci
29+
npm run build
30+
- name: Upload artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: .deploy
34+
35+
deploy:
36+
needs: build
37+
permissions:
38+
pages: write
39+
id-token: write
40+
environment:
41+
name: github-pages
42+
runs-on: ubuntu-latest
43+
name: Deploy
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)