Skip to content

Commit

Permalink
Test initial docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlccie committed Aug 3, 2024
1 parent 2de9432 commit 8b7b3c1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docs

on:
push:
branches:
- main
workflow_dispatch:
workflow_call:

jobs:
build-and-publish:
name: Build and Publish Docs
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
env:
POETRY_VIRTUALENVS_CREATE: false
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"

- uses: Gr1N/setup-poetry@v9

- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Install Dependencies
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install --no-root --only=docs
- name: Build Package
run: poetry build

- name: Install Package
run: pip install dist/*.whl

- name: Build & Publish Docs
uses: sphinx-notes/pages@v3

0 comments on commit 8b7b3c1

Please sign in to comment.