From e4ceca47e24d0f1f139033392a52d4ddd1c6cae7 Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Mon, 11 Sep 2023 14:20:41 +0200 Subject: [PATCH] .github/workflows/deploy.yml: add Signed-off-by: Maciej Pijanowski --- .github/workflows/deploy.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ea2ea71 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Build and Deploy Documentation + +on: + push: + branches: + - main # replace with the name of your default branch + - ci + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 # replace with your Python version + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r ./requirements.txt + + - name: Build documentation + run: | + make html + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build/html