Skip to content

Commit 969cc41

Browse files
committed
Update workflowss
1 parent d57fde1 commit 969cc41

File tree

5 files changed

+49
-6
lines changed

5 files changed

+49
-6
lines changed

.github/workflows/nightly-build.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ jobs:
99
build:
1010
if: ${{ github.repository_owner == 'ProjectPythia' }}
1111
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
12-
link-check:
13-
if: ${{ github.repository_owner == 'ProjectPythia' }}
14-
uses: ProjectPythia/cookbook-actions/.github/workflows/link-checker.yaml@main
12+
with:
13+
build_command: 'myst build --execute --html'
14+
15+
deploy:
16+
needs: build
17+
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
18+
19+
# We don't have a link-checker with MyST right now
20+
# link-check:
21+
# if: ${{ github.repository_owner == 'ProjectPythia' }}
22+
# uses: ProjectPythia/cookbook-actions/.github/workflows/link-checker.yaml@main

.github/workflows/publish-book.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ on:
55
push:
66
branches:
77
- main
8-
- dev
98
workflow_dispatch:
109

1110
jobs:
1211
build:
1312
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
13+
with:
14+
build_command: 'myst build --execute --html'
15+
16+
1417
deploy:
1518
needs: build
16-
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
19+
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: replace-links
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Find and Replace Repository Name
15+
uses: jacobtomlinson/gha-find-replace@v3
16+
with:
17+
find: "ProjectPythia/cookbook-template"
18+
replace: "${{ github.repository_owner }}/${{ github.event.repository.name }}"
19+
regex: false
20+
exclude: ".github/workflows/replace-links.yaml"
21+
22+
- name: Find and Replace Repository ID
23+
uses: jacobtomlinson/gha-find-replace@v3
24+
with:
25+
find: "475509405"
26+
replace: "${{ github.repository_id}}"
27+
regex: false
28+
exclude: ".github/workflows/replace-links.yaml"
29+
30+
- name: Push changes
31+
uses: stefanzweifel/git-auto-commit-action@v5

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ jobs:
77
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
88
with:
99
artifact_name: book-zip-${{ github.event.number }}
10+
base_url: '/${{ github.event.repository.name }}/_preview/${{ github.event.number }}'
1011
# Other input options are possible, see ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml

.github/workflows/trigger-delete-preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ on:
66

77
jobs:
88
delete:
9-
uses: ProjectPythia/cookbook-actions/.github/workflows/delete-preview.yaml@main
9+
uses: ProjectPythia/cookbook-actions/.github/workflows/delete-preview.yaml@main

0 commit comments

Comments
 (0)