Skip to content

Commit f283ed7

Browse files
pages
1 parent 7c0f2bc commit f283ed7

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

.github/workflows/pages.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repos:
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

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pybag
2+
pygame

0 commit comments

Comments
 (0)