Skip to content

Commit

Permalink
ci: add auto publish of mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
HYP3R00T committed Nov 26, 2024
1 parent bc93726 commit 6020c71
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/mkdocs_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: MkDocs Publish

on:
workflow_dispatch:
push:
branches:
- main # Change this to your main branch name

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install --no-root
- name: Build and deploy
run: |
poetry run mkdocs build --verbose
poetry run mkdocs gh-deploy --verbose --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6020c71

Please sign in to comment.