From d66ea6b27f6c3386936d3dd3f5122ed8042c4022 Mon Sep 17 00:00:00 2001 From: Ace Date: Sat, 3 Jun 2023 16:16:34 +0200 Subject: [PATCH] auto-generate docs --- .github/workflows/tests.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ceb30f6..cbd4cc2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,7 @@ jobs: - name: Clone repo run: | - git clone --single-branch https://github.com/aceisace/Inkycal + git clone --single-branch https://github.com/aceinnolab/Inkycal - name: Creating virtual environment run: | cd Inkycal @@ -30,6 +30,15 @@ jobs: run: | pip install wheel pip install -e ./ + - name: generate docs + run: | + cd docsource + make html + - name: Deploy Docs to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ._build/html - name: Setup test environment and run tests env: OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} @@ -38,5 +47,5 @@ jobs: TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} run: | cd inkycal/tests - wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json + wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json for f in *.py; do python3 "$f"; done