From d5378898ef21e54e1f271b0825ec3df48dac235f Mon Sep 17 00:00:00 2001 From: Manabu Nakazawa Date: Mon, 19 Aug 2024 04:56:24 +1000 Subject: [PATCH] Run build.sh for GitHub Actions --- .github/workflows/static.yml | 4 +++- build.sh | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) 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