From 9e458a0702fe01139c9ac59a3c29081ee1eb2b37 Mon Sep 17 00:00:00 2001 From: John Mackey <109514137+Sunday-Crunk@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:11:45 +0100 Subject: [PATCH] Create mkdocsDeploy.yml --- .github/workflows/mkdocsDeploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/mkdocsDeploy.yml diff --git a/.github/workflows/mkdocsDeploy.yml b/.github/workflows/mkdocsDeploy.yml new file mode 100644 index 0000000..e101d98 --- /dev/null +++ b/.github/workflows/mkdocsDeploy.yml @@ -0,0 +1,28 @@ +name: Deploy MkDocs to GitHub Pages + +on: + push: + branches: + - main # or your default branch + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' # Specify the Python version + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install mkdocs mkdocs-material # Add other dependencies if needed + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site