更新 GitHub Actions 配置文件以触发推送和拉取请求事件 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pygbag_build | |
on: | |
# run it on push to the default repository branch | |
push: | |
branches: [main] | |
# run it during pull request | |
pull_request: | |
jobs: | |
build-pygbag: | |
name: Build for Emscripten pygbag runtime | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout | |
run: | | |
python -m pip install pygbag | |
sh ./build.sh | |
- name: "Upload to GitHub pages branch gh-pages" | |
uses: JamesIves/github-pages-deploy-action@4.1.7 | |
with: | |
branch: gh-pages | |
folder: web |