Skip to content

v0.9.0b3

v0.9.0b3 #4

Workflow file for this run

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: Set up python.
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install dependencies.
shell: bash
run: |
python -m pip install .
if [ "$RUNNER_OS" == "macOS" ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install freetype
fi
- 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