Skip to content

Commit b00b36d

Browse files
committed
Implement workflow to generate docs upon deployment
1 parent 18299d9 commit b00b36d

File tree

237 files changed

+67
-77317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+67
-77317
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Generate pygame-ce documentation
2+
3+
on:
4+
workflow_dispatch: # for manual workflow trigger
5+
schedule:
6+
- cron: '0 0 * * *' # runs at every 12AM UTC
7+
8+
jobs:
9+
build-docs:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ['3.11']
14+
defaults:
15+
run:
16+
working-directory: ../pyga.me
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install pygame-ce
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install pygame-ce pygithub
27+
- name: Clone and move docs
28+
run: |
29+
python utils/generate_docs.py
30+
- uses: EndBug/add-and-commit@v9
31+
with:
32+
message: Update documentation
33+
committer_name: GitHub Actions
34+
committer_email: [email protected]

β€Ž.github/workflows/nextjs.ymlβ€Ž

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,27 @@ concurrency:
2424
cancel-in-progress: true
2525

2626
jobs:
27-
# Build job
2827
build:
28+
# Build documentation
2929
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
python-version: ['3.11']
3033
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v3
34+
- uses: actions/checkout@v3
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v4
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
- name: Install pygame-ce
40+
run: |
41+
python -m pip install --upgrade pip
42+
pip install pygame-ce
43+
- name: Clone and move docs
44+
run: |
45+
python utils/generate_docs.py
46+
47+
# Build actual site
3348
- name: Detect package manager
3449
id: detect-package-manager
3550
run: |

β€Ž.gitignoreβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3-
/dist
4-
53
# dependencies
64
/node_modules
75
/.pnp

β€Žpublic/docs/LGPL.txtβ€Ž

Lines changed: 0 additions & 504 deletions
This file was deleted.
-5.52 KB
Binary file not shown.
-5.52 KB
Binary file not shown.
-70.5 KB
Binary file not shown.
-70.5 KB
Binary file not shown.
-6.15 KB
Binary file not shown.
-6.15 KB
Binary file not shown.

0 commit comments

Comments
Β (0)