Skip to content

Commit 059f669

Browse files
committed
fix deploy
1 parent 78a78ce commit 059f669

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/deploy.yml

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

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
71+
- name: Build with Next.js
72+
run: ${{ steps.detect-package-manager.outputs.runner }} next build
8473

8574
- name: Upload artifact
8675
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)