Skip to content

Merge pull request #2 from OpenAgentsInc/dependabot/pip/pytest-8.2.0 #14

Merge pull request #2 from OpenAgentsInc/dependabot/pip/pytest-8.2.0

Merge pull request #2 from OpenAgentsInc/dependabot/pip/pytest-8.2.0 #14

Workflow file for this run

name: Build Python
on:
push:
release:
types: [published]
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Build
run: python setup.py sdist
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: dist
- name: Generate documentation
run: |
pip install pdoc3
pip install -r requirements.txt
pdoc --html -o docs/ openagents
tar -czvf docs.tar.gz docs
- name: Upload Docs Artifacts
uses: actions/upload-artifact@v2
with:
name: docs
path: docs
- name: Upload release asset
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: |
dist/*.tar.gz
docs.tar.gz
- name: Deploy documentation to GitHub Pages
if: github.event_name == 'release'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/openagents