-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.34 KB
/
deploy-pygame.yml
File metadata and controls
43 lines (39 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build Preservation Python3 with Pygbag
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
permissions:
contents: write
jobs:
build-pygbag:
name: Preservation-python3 Game
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Compile translation files 🈴
run: |
echo "Attempting to install babel"
python -m pip install babel
echo "Successfully installed babel"
echo "Compiling translation files"
pybabel compile -d translations -D preservation
echo "Successfully compiled translation files"
- name: Install and Build 🔧
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 --template $GITHUB_WORKSPACE/default.tmpl $GITHUB_WORKSPACE/main.py
echo "Successfully build the game and compiled to WebAssembly"
- name: Upload to GitHub pages branch gh-pages 🚀
uses: JamesIves/github-pages-deploy-action@v4.7.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: gh-pages
folder: build/web