File tree Expand file tree Collapse file tree 5 files changed +49
-6
lines changed
Expand file tree Collapse file tree 5 files changed +49
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - main
8- - dev
98 workflow_dispatch :
109
1110jobs :
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 66
77jobs :
88 delete :
9- uses : ProjectPythia/cookbook-actions/.github/workflows/delete-preview.yaml@main
9+ uses : ProjectPythia/cookbook-actions/.github/workflows/delete-preview.yaml@main
You can’t perform that action at this time.
0 commit comments