Attempt to deploy to GitHub pages #1
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 game with Pygbag | |
on: | |
push: | |
branches: | |
- web | |
workflow_dispatch: | |
jobs: | |
build-pygbag: | |
name: 3, 2, 5 Can you count? | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout | |
run: | | |
echo "Attempting to install pygbag" | |
python3 -m pip install pygbag | |
echo "Successfully installed pygbag" | |
echo "Attempting to build the game" | |
python3 -m pygbag --build main.py | |
echo "Successfully built the game and complied to WebAssembly" | |
- name : "Upload to GitHub pages branch gh-pages" | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build/web |