Skip to content

更新 GitHub Actions 配置文件以触发推送和拉取请求事件 #2

更新 GitHub Actions 配置文件以触发推送和拉取请求事件

更新 GitHub Actions 配置文件以触发推送和拉取请求事件 #2

Workflow file for this run

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