Skip to content

Commit

Permalink
Merge api-docs-deploy.yml into version-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arxyzan committed Aug 24, 2023
1 parent 1358f16 commit 8b1b257
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/api-docs-deploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release On Pypi
name: Version Release

on:
push:
Expand All @@ -7,7 +7,7 @@ on:

jobs:
build:
name: Create Release
name: Create GitHub Release
runs-on: ubuntu-latest
steps:

Expand All @@ -25,6 +25,7 @@ jobs:
prerelease: false

pypi-release:
name: Publish on PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
Expand Down Expand Up @@ -66,3 +67,25 @@ jobs:
poetry publish --build
needs:
- build

docs:
name: Generate source docs and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx myst-parser furo sphinx-copybutton hezar
- name: Sphinx build
run: |
sphinx-apidoc -e -o docs/source hezar/
sphinx-build docs _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true

0 comments on commit 8b1b257

Please sign in to comment.