Skip to content

Commit

Permalink
Run build.sh for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibanami committed Aug 18, 2024
1 parent af01913 commit d537889
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 4 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d537889

Please sign in to comment.