Skip to content

Commit

Permalink
Merge pull request #33 from bird-house/add-workflow
Browse files Browse the repository at this point in the history
added workflow for deploy and test
  • Loading branch information
cehbrecht authored Dec 12, 2024
2 parents 37ffeb8 + 02bea2b commit 201b955
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy website ⚙️

on:
push:
branches: [main]

jobs:
build:
name: Deploy website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install requirements 📦
run: |
python3 -m pip install --upgrade pip
pip3 install mkdocs-material
- name: Deploy 📦
run: mkdocs gh-deploy --force -m 'update website'
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test website build ⚙️

on:
pull_request:
paths:
- '**'

jobs:
build:
name: Test website build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install requirements 📦
run: |
python3 -m pip install --upgrade pip
pip3 install mkdocs.material
- name: Test build 📦
run: mkdocs build --strict

0 comments on commit 201b955

Please sign in to comment.