From 81c3a5726a3111952365daf183d6fd88c552b1a0 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Tue, 4 Apr 2023 11:47:12 +0200 Subject: [PATCH] Create docs.yml (#18) --- .github/workflows/docs.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..a140ff5 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,27 @@ +name: Deploy to Github Pages + +on: + push: + branches: [ "main" ] + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install poetry + run: pipx install poetry + + - name: Setup Python + uses: actions/setup-python@v3.1.3 + with: + python-version: '3.x' + cache: poetry + + - name: Install dependencies + run: poetry install + + - name: Run gh-deploy + run: poetry run mkdocs gh-deploy