File tree Expand file tree Collapse file tree 5 files changed +733
-8
lines changed
Expand file tree Collapse file tree 5 files changed +733
-8
lines changed Original file line number Diff line number Diff line change 99
1010 workflow_dispatch :
1111
12+ workflow_call :
13+
1214permissions :
1315 contents : write
1416
@@ -20,21 +22,21 @@ jobs:
2022 - uses : actions/checkout@v4
2123 with :
2224 fetch-depth : 0
23-
25+
2426 - uses : actions/setup-node@v3
2527 with :
2628 node-version : " 21.x"
27-
29+
2830 - name : Configure Git
2931 run : |
3032 git config --global user.name "github-actions[bot]"
3133 git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
32-
34+
3335 - name : Update GQM diagram
3436 run : |
3537 cd scripts/gqm_gen
3638 ./update_gqm.sh
37-
39+
3840 - name : Report coverage
3941 if : success()
4042 uses : sidx1024/report-nyc-coverage-github-action@v1.2.7
Original file line number Diff line number Diff line change @@ -75,11 +75,16 @@ jobs:
7575 run : ${{ env.CARGO_HOME }}/bin/mdbook build
7676
7777 - name : Deploy to GitHub Pages
78- uses : peaceiris/actions-gh- pages@v4
78+ uses : JamesIves/github- pages-deploy-action @v4
7979 with :
80- github_token : ${{ secrets.GITHUB_TOKEN }}
81- publish_dir : ./book
82- keep_files : true
80+ branch : gh-pages
81+ folder : ./book
82+ clean : true
83+ clean-exclude : pr-preview
84+
85+ gqm-main :
86+ needs : deploy
87+ uses : ./.github/workflows/gqm_update.yml
8388
8489 preview :
8590 if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
@@ -133,6 +138,11 @@ jobs:
133138 if : github.event.action != 'closed'
134139 run : echo "${CARGO_HOME}/bin" >> "$GITHUB_PATH"
135140
141+ - name : Set preview site-url
142+ if : github.event.action != 'closed'
143+ run : |
144+ sed -i 's|site-url = "/managing-innersource-projects/"|site-url = "/managing-innersource-projects/pr-preview/pr-${{ github.event.pull_request.number }}/"|' book.toml
145+
136146 - name : Build with mdBook
137147 if : github.event.action != 'closed'
138148 run : ${{ env.CARGO_HOME }}/bin/mdbook build
@@ -143,3 +153,8 @@ jobs:
143153 source-dir : ./book
144154 preview-branch : gh-pages
145155 umbrella-dir : pr-preview
156+
157+ gqm-preview :
158+ if : github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository
159+ needs : preview
160+ uses : ./.github/workflows/gqm_update.yml
You can’t perform that action at this time.
0 commit comments