Skip to content

Commit 7a69a6f

Browse files
authored
Merge pull request #8 from EduBricksHub/spa-deploy-needs-fix
Spa deploy needs fix
2 parents aed4987 + ab4bd9f commit 7a69a6f

25 files changed

Lines changed: 3251 additions & 1346 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Deploy pages
22

33
on:
4-
workflow_dispatch: {}
54
push:
65
branches:
76
- main
7+
workflow_dispatch: {}
88

99
jobs:
1010
deploy:
@@ -21,31 +21,30 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24-
with:
25-
submodules: recursive
26-
2724

2825
- uses: actions/setup-node@v4
2926
with:
30-
node-version: 'lts/*'
27+
node-version: lts/*
3128

3229
- name: Install dependencies
3330
run: npm install
3431

35-
- name: Build Deck1
36-
run: npm run build:deck1 -- --base /${{github.event.repository.name}}/deck1
37-
38-
- name: Build Deck2
39-
run: npm run build:deck2 -- --base /${{github.event.repository.name}}/deck2
40-
41-
- name: Build Deck3
42-
run: npm run build:deck3 -- --base /${{github.event.repository.name}}/deck3
43-
44-
- name: Build Deck4
45-
run: npm run build:deck4 -- --base /${{github.event.repository.name}}/deck4
46-
47-
- name: Build Deck5
48-
run: npm run build:deck5 -- --base /${{github.event.repository.name}}/deck5
32+
- name: Generate decks metadata
33+
run: node scripts/generate-decks.js
34+
35+
- name: Build Slidev decks
36+
run: node scripts/build-all.js
37+
38+
- name: Build Vue gallery
39+
run: |
40+
cd app
41+
npm install
42+
npm run build
43+
cd ..
44+
45+
- name: Merge gallery into Pages dist
46+
run: |
47+
cp -r app/dist/* dist/
4948
5049
- uses: actions/configure-pages@v4
5150

@@ -55,4 +54,4 @@ jobs:
5554

5655
- name: Deploy
5756
id: deployment
58-
uses: actions/deploy-pages@v4
57+
uses: actions/deploy-pages@v4

app/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

app/.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

app/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Vue 3 + Vite
2+
3+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).

app/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/png" href="/favicon.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>EduSlides – Slide Deck Gallery</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)