Skip to content

Commit

Permalink
Rename documentation and simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Feb 9, 2024
1 parent 399a048 commit eb055b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eb055b2

Please sign in to comment.