From 26cf38580235b9ebaae364e15e27599b12870597 Mon Sep 17 00:00:00 2001 From: Matt Steen Date: Mon, 22 Jan 2024 13:16:08 -0700 Subject: [PATCH] actions --- .github/workflows/cd.yaml | 25 +++++++++++++++++++++++++ .github/workflows/ci.yaml | 17 +++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/cd.yaml create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml new file mode 100644 index 0000000..665c65c --- /dev/null +++ b/.github/workflows/cd.yaml @@ -0,0 +1,25 @@ +name: continuous deployment + +on: + workflow_dispatch + +# required to push to gh-pages branch +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # error without: + # ! [rejected] gh-pages -> gh-pages (fetch first) + with: + fetch-depth: 0 + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: install dependencies + run: pip install mkdocs + - name: deploy + run: mkdocs gh-deploy \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3aaf482 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,17 @@ +name: continuous integration + +on: + pull_request + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: install dependencies + run: pip install mkdocs + - name: build + run: mkdocs build \ No newline at end of file