Skip to content

Commit 4d3dc37

Browse files
authored
Merge pull request #96 from brian-rose/cleanup
Clean up and simplify template
2 parents 1ebfc55 + 09b84e6 commit 4d3dc37

5 files changed

+3
-18
lines changed

.github/workflows/nightly-build.yaml

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ jobs:
1111
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/build-book.yaml@main
1212
with:
1313
environment_name: cookbook-dev
14-
environment_file: environment.yml
15-
path_to_notebooks: ./
1614

1715
link-check:
1816
if: ${{ github.repository_owner == 'ProjectPythiaCookbooks' }}
1917
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/link-checker.yaml@main
20-
with:
21-
environment_name: cookbook-dev
22-
environment_file: environment.yml
23-
path_to_notebooks: ./
18+

.github/workflows/publish-book.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/build-book.yaml@main
1313
with:
1414
environment_name: cookbook-dev
15-
environment_file: environment.yml
16-
path_to_notebooks: ./
1715

1816
deploy:
1917
needs: build

.github/workflows/trigger-book-build.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,5 @@ jobs:
77
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/build-book.yaml@main
88
with:
99
environment_name: cookbook-dev
10-
environment_file: environment.yml
11-
path_to_notebooks: ./
12-
use_cached_environment: 'true' # This is default, not strickly needed. Set to 'false' to always build a new environment
1310
artifact_name: book-zip-${{ github.event.number }}
14-
11+
# Other input options are possible, see ProjectPythiaCookbooks/cookbook-actions/.github/workflows/build-book.yaml

.github/workflows/trigger-link-check.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,4 @@ on:
55
jobs:
66
link-check:
77
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/link-checker.yaml@main
8-
with:
9-
environment_name: cookbook-dev
10-
environment_file: environment.yml
11-
path_to_notebooks: ./
12-
use_cached_environment: 'true'
138

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ tags:
1515
packages:
1616
- samplepackage
1717

18-
# Execute the notebooks upon build
1918
execute:
19+
# To execute notebooks via a binder instead, replace 'cache' with 'binder'
2020
execute_notebooks: cache
2121
timeout: 600
2222
allow_errors: True

0 commit comments

Comments
 (0)