Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/pygame-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build with Pygbag
on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-pygbag:
name: Astro - N-body simulator
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/src/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: astro/build/web