Commit a3fed58
committed
CI: prevent gh-pages deploy race with force_orphan + concurrency
The v1.2.1 tag push and the same-commit main push triggered the
deploy-pages job twice in parallel. They both ran build-html
successfully, then both tried to push to gh-pages — one won, the
other got 'failed to push some refs (fetch first)'.
Two changes:
1. force_orphan: true on the gh-pages action. Each deploy
creates a fresh orphan commit instead of fetching and
fast-forwarding. No fetch step means no fetch-first conflict.
2. Separate concurrency group 'deploy-pages' for the deploy job
(the build concurrency group is keyed on github.ref, so
main + tag don't share a group there). Serializes deploys
across all refs so future tag-and-main races also self-resolve.
This commit itself ships v1.2.1's content (including the new
Notice page) to Pages.1 parent 70d53ca commit a3fed58
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
| |||
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
143 | 153 | | |
144 | 154 | | |
145 | 155 | | |
| |||
0 commit comments