From 2ff23745587fdeb694d39f0bd20e1c11f76acec1 Mon Sep 17 00:00:00 2001 From: Thor Whalen <1906276+thorwhalen@users.noreply.github.com> Date: Wed, 6 Nov 2024 10:05:14 +0100 Subject: [PATCH] Update action.yml Trying to fix CI doc gen and publishing. Doing what is specified in https://github.com/i2mint/epythet?tab=readme-ov-file#publishing-to-github-page-with-github-actions --- actions/generate-documentation/action.yml | 27 ++++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/actions/generate-documentation/action.yml b/actions/generate-documentation/action.yml index c85642d..1f27d3a 100644 --- a/actions/generate-documentation/action.yml +++ b/actions/generate-documentation/action.yml @@ -1,12 +1,17 @@ -name: "Generate Documentation" +name: GitHub Pages description: "Generate documentation using Epythet" -runs: - using: 'composite' - steps: - - name: Install Dependencies - uses: i2mint/isee/actions/install-packages@master - with: - pypi-packages: 'isee' - - name: Generate Documentation - shell: bash - run: isee generate-documentation +on: + workflow_run: + workflows: ["Continuous Integration"] + types: + - completed +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: i2mint/epythet/actions/publish-github-pages@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + docs-branch: "gh-pages" + docs-dir: "./docsrc/_build/html/" + python-version: "3.10"