Skip to content

Commit

Permalink
mkdocs publish automation
Browse files Browse the repository at this point in the history
  • Loading branch information
HYP3R00T committed May 9, 2024
1 parent 4e5de69 commit cb55ee9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/mkdocs_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: MkDocs Publish

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

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

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

- name: Install Poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
source $HOME/.poetry/env
- name: Install dependencies
run: |
poetry install --no-root
- name: Build and deploy
run: |
poetry run mkdocs build --verbose
poetry run mkdocs gh-deploy --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cb55ee9

Please sign in to comment.