diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 473e780..3d41ccf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -47,7 +47,7 @@ jobs: - name: Install dependencies run: npm install - name: Build - run: npm run build -- --base /${{github.event.repository.name}}/ *.md + run: npm run build -- --base /${{github.event.repository.name}}/slides/ *.md - uses: actions/upload-artifact@v4 with: name: slides-output @@ -69,7 +69,10 @@ jobs: path: public/slides/ - name: Move stuff into single folder run: | - ls public/ + for f in public/slides/*; + do + echo "/slides/$f/\* /slides/$f/index.html 200" >> public/_redirects + end - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifacts