Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit c263d71

Browse files
Merge pull request #6 from kbrddestroyer/wip/pygame-deploy
Create pygame-deploy.yml
2 parents d50b7d8 + 2448982 commit c263d71

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build with Pygbag
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-pygbag:
10+
name: Astro - N-body simulator
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Checkout
16+
run: |
17+
echo "Attempting to install pygbag"
18+
python -m pip install pygbag
19+
echo "Successfully installed pygbag"
20+
echo "Attempting to build the game"
21+
python -m pygbag --build $GITHUB_WORKSPACE/src/main.py
22+
echo "Successfully build the game and complied to WebAssembly"
23+
24+
- name : "Upload to GitHub pages branch gh-pages"
25+
uses: JamesIves/github-pages-deploy-action@4.1.7
26+
with:
27+
branch: gh-pages
28+
folder: astro/build/web
29+

0 commit comments

Comments
 (0)