From eb055b2e229db3ed112d7cc83166eb9c5b1774a7 Mon Sep 17 00:00:00 2001 From: "Jorgen S. Dokken" Date: Fri, 9 Feb 2024 14:26:05 +0000 Subject: [PATCH] Rename documentation and simplify logic --- .github/workflows/build_docs.yml | 13 ------------- .github/workflows/deploy_pages.yml | 5 ++--- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 199fe6b..432e477 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -10,10 +10,6 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: workflow_call: - inputs: - artifact_name: - type: string - required: true env: # Directory that will be published on github pages @@ -42,15 +38,6 @@ jobs: - name: Build docs run: jupyter book build -W . - - name: Upload documentation as artifact (from workflow call) - uses: actions/upload-artifact@v4 - if: github.event_name == 'workflow_call' - with: - name: ${{ inputs.artifact_name }} - path: ${{ env.PUBLISH_DIR }} - if-no-files-found: error - - - name: Upload documentation as artifact uses: actions/upload-artifact@v4 if: github.event_name != 'workflow_call' diff --git a/.github/workflows/deploy_pages.yml b/.github/workflows/deploy_pages.yml index 9bc4585..3828b9f 100644 --- a/.github/workflows/deploy_pages.yml +++ b/.github/workflows/deploy_pages.yml @@ -18,8 +18,7 @@ concurrency: jobs: build-docs: uses: ./.github/workflows/build_docs.yml - with: - artifact_name: "documentation" + run-coverage: uses: ./.github/workflows/test_package.yml @@ -40,7 +39,7 @@ jobs: # docs artifact is uploaded by build-docs job uses: actions/download-artifact@v4 with: - name: documentation + name: docs path: "./public" - name: Download docs artifact