Skip to content

Commit

Permalink
chore: use poetry to build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
datnguye committed Feb 18, 2024
1 parent 4ef7078 commit d297e60
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish-docs-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@ jobs:
key: ${{ github.ref }}
path: .cache

- uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.6.1

- name: Install dependencies
run: pip install mkdocs mkdocs-material mkdocs-minify-plugin mike pdoc
run: |
poetry config installer.max-workers 1
poetry config virtualenvs.in-project true
poetry install
- name: Configure Git user
run: |
Expand All @@ -41,9 +48,9 @@ jobs:
- name: Publish site version (non-stable)
if: ${{ inputs.delete == 'false' }}
run: |
mike deploy --push --update-aliases ${{ inputs.version }}
poetry run mike deploy --push --update-aliases ${{ inputs.version }}
- name: Delete site version
if: ${{ inputs.delete == 'true' }}
run: |
mike delete --push ${{ inputs.version }}
poetry run mike delete --push ${{ inputs.version }}
11 changes: 9 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ jobs:
key: ${{ github.ref }}
path: .cache

- uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.6.1

- name: Install dependencies
run: pip install mkdocs mkdocs-material mkdocs-minify-plugin mike pdoc
run: |
poetry config installer.max-workers 1
poetry config virtualenvs.in-project true
poetry install
- name: Configure Git user
run: |
Expand All @@ -32,4 +39,4 @@ jobs:
- name: Publish site
run: |
mike deploy --push --update-aliases ${{ inputs.version }} latest
poetry run mike deploy --push --update-aliases ${{ inputs.version }} latest

0 comments on commit d297e60

Please sign in to comment.