Skip to content

Commit

Permalink
make branch for build
Browse files Browse the repository at this point in the history
  • Loading branch information
gandalfr-KY committed Jun 5, 2024
1 parent 37057f1 commit 1aa121e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,17 @@ jobs:
run: |
source emsdk/emsdk_env.sh
emcc src/cpp/matrix.cpp -o build/matrix.js -lembind -std=c++17 -s WASM=2
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git clone --depth 1 --branch gh-pages https://github.com/${{ github.repository }} gh-pages
rm -rf gh-pages/*
cp -r build/* gh-pages/
cd gh-pages
git add .
git commit -m 'Deploy to GitHub Pages'
git push origin gh-pages

0 comments on commit 1aa121e

Please sign in to comment.