diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 7b545fd..1f70f95 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -27,10 +27,12 @@ jobs: uses: actions/checkout@v3 - name: Setup Pages uses: actions/configure-pages@v3 + - name: Build Pages + run: ./build.sh - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: 'docs' + path: 'output' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2 diff --git a/build.sh b/build.sh index c2fda32..ab4cb3d 100755 --- a/build.sh +++ b/build.sh @@ -3,12 +3,11 @@ cd "$(dirname "${BASH_SOURCE:-$0}")" rm -rf output -mkdir -p output/redirect-web -cp -R docs/* output/redirect-web +mkdir -p output/ +cp -R docs/* output/ -mkdir -p output/redirect-web/new +mkdir -p output/new cd docusaurus npm install npm run build - -cp -R build/* ../output/redirect-web/new +cp -R build/* ../output/new