Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPiggy105 authored Sep 2, 2024
1 parent 6e2a2d0 commit a847850
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy MkDocs to website repo

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install MkDocs
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-dracula-theme
- name: Build the MkDocs site
run: mkdocs build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2

0 comments on commit a847850

Please sign in to comment.