Skip to content

Commit

Permalink
Add generate docs action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aermoss committed Jan 12, 2025
1 parent 04297cc commit d7aae55
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Generate Docs

on:
release:
types: [created]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
platform: linux

- os: windows-latest
platform: windows

- os: macos-latest
platform: darwin

steps:
- name: Checkout code.
uses: actions/checkout@v4

- name: Setup up python.
uses: actions/setup-python@v3
with:
python-version: "3.x"

- name: Install dependencies.
run: |
pip install -r requirements.txt
- name: Generate docs.
run: |
python -c "import sdl3"
- name: Upload asset.
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: sdl3/__doc__.py
asset_name: ${{ matrix.platform }}-docs.py
asset_content_type: text/plain
3 changes: 2 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout code.
uses: actions/checkout@v4

- name: Set up Python.
uses: actions/setup-python@v3
Expand Down

0 comments on commit d7aae55

Please sign in to comment.