From 02bea2b47f87266f3fe88b4fc23c3c6628eba2e5 Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Thu, 12 Dec 2024 19:45:50 +0100 Subject: [PATCH] added workflow for deploy and test --- .github/workflows/deploy.yml | 21 +++++++++++++++++++++ .github/workflows/test.yml | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..35d7a97 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4486477 --- /dev/null +++ b/.github/workflows/test.yml @@ -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