Skip to content

chore: added a deploy to github pages workflow #2

chore: added a deploy to github pages workflow

chore: added a deploy to github pages workflow #2

name: Deploy to GitHub Pages
# Updates the GitHub pages website with the changes made in the last push.
# Takes in all markdown files and images of the repository and turns that
# into HTML to present on the GitHub pages website. Used for documentation.
on:
workflow_dispatch:
push:
branches: [main, master, release, development]
paths:
- ".github/workflows/push--deploy-github-pages.yaml"
- "mkdocs.yml"
- "**/.md"
- "**/.markdown"
- "**/.png"
- "**/.svg"
- "**/.jpg"
- "**/.jpeg"
- "**/*.webp"
- "**/*.html"
- "**/*.css"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: github-pages
cancel-in-progress: false
jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Pages
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v4
with: { python-version: '3.x' }
- name: Install pip
run: python -m pip install --upgrade pip
- name: Install MkDocs and dependencies
run: pip install mkdocs mkdocs-shadcn
- name: Build site with MkDocs
run: mkdocs build --site-dir ./_site
- name: Upload artifact
uses: actions/[email protected]
with: { path: ./_site }
deploy:
name: Deploy site
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]