Skip to content

Build Pygame with Pygbag #4

Build Pygame with Pygbag

Build Pygame with Pygbag #4

name: Build Pygame with Pygbag
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-pygbag:
name: Raycasting demo
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/space_invaders/main.py
echo "Successfully build the game and complied to WebAssembly"
- name : "Upload to GitHub pages branch gh-pages"
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
folder: build/web