File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy Webpage
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
16+ cancel-in-progress : true
17+
18+ jobs :
19+ build-github-docs :
20+ runs-on : ubuntu-24.04
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - uses : actions/setup-python@v5
26+ with :
27+ python-version : ' 3.12'
28+
29+ - name : Install build deps
30+ run : pip install -r requirements.txt
31+
32+ - name : Build web bundle
33+ run : python -m pygbag --build .
34+
35+ - name : Upload artifact
36+ uses : actions/upload-pages-artifact@v3
37+ with :
38+ path : build/web
39+
40+ deploy :
41+ needs : build-github-docs
42+ runs-on : ubuntu-24.04
43+
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+
48+ steps :
49+ - uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1212 - id : debug-statements
1313 - id : end-of-file-fixer
1414 - id : fix-byte-order-marker
15+ - id : requirements-txt-fixer
1516 - id : trailing-whitespace
1617
1718 - repo : https://github.com/pycqa/isort
Original file line number Diff line number Diff line change 1+ pybag
2+ pygame
You can’t perform that action at this time.
0 commit comments