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: Build Pool Game with Pygbag | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-pygbag: | |
name: Pool Game | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout | |
run: | | |
echo "Attempting to install pygbag" | |
python -m pip install pygbag | |
echo "Successfully installed pygbag" | |
echo "Attempting to build the game" | |
python -m pygbag --build $GITHUB_WORKSPACE/pool/main.py | |
echo "Successfully build the game and complied to WebAssembly" | |
- name : "Upload to GitHub pages branch deployment" | |
uses: JamesIves/[email protected] | |
with: | |
branch: deployment | |
folder: pool/build/web |