Skip to content

Commit 78a78ce

Browse files
committed
deploy
1 parent 7d36118 commit 78a78ce

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,19 @@ jobs:
6868
- name: Install dependencies
6969
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7070

71-
- name: Build with Next.js
72-
run: ${{ steps.detect-package-manager.outputs.runner }} next build
71+
- name: Build
72+
run: ${{ steps.detect-package-manager.outputs.manager }} run build
73+
74+
- name: Copy notes to /notes
75+
run: |
76+
mkdir -p out/notes
77+
for d in slides/*; do
78+
if [ -d "$d" ]; then
79+
name=$(basename "$d")
80+
mkdir -p out/notes/$name
81+
cp "$d/main.html" "out/notes/$name/index.html"
82+
fi
83+
done
7384
7485
- name: Upload artifact
7586
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)