Commit 58c1968
authored
Use
Resolves #561
Resolve #574
Switches from the current branch based workflow for deploying MkDocs
documentation to GitHub Pages in template to instead use
`actions/deploy-pages` and removes suggestion in post-generation message
displayed to user to set repository wide write permissions for Github
Actions workflows in favour of using granular permissions in workflow
file.
I originally completely removed the post-generation message as I thought
by using the `actions/deploy-pages` approach we might be able to avoid
having to do additional configuration of repository before site will
deploy, but unfortunately it seems the default source setting for GitHub
Pages on a new repository is branch so unless this is switched to GitHub
Actions before doing the initial workflow run, the deploy job fails. I
couldn't see any options for configuring this via CLI under `gh repo
edit`.
Tested this works at https://github.com/matt-graham/docs-deploy-test and
everything seems to work as expected provided manual configuration steps
are done as indicated in updated message.actions/deploy-pages to deploy docs in template (#578)1 parent 9543edb commit 58c1968
File tree
4 files changed
+57
-67
lines changed- hooks
- tests/data/test_package_generation/.github/workflows
- {{cookiecutter.project_slug}}/.github/workflows
4 files changed
+57
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
98 | 93 | | |
99 | | - | |
100 | | - | |
101 | | - | |
| 94 | + | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
| |||
Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
41 | 38 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 205 | + | |
| 206 | + | |
210 | 207 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 208 | + | |
| 209 | + | |
216 | 210 | | |
217 | 211 | | |
218 | 212 | | |
219 | | - | |
220 | | - | |
221 | | - | |
| 213 | + | |
222 | 214 | | |
223 | 215 | | |
224 | 216 | | |
225 | 217 | | |
226 | | - | |
227 | | - | |
| 218 | + | |
228 | 219 | | |
229 | | - | |
230 | | - | |
| 220 | + | |
231 | 221 | | |
232 | | - | |
| 222 | + | |
233 | 223 | | |
234 | 224 | | |
235 | 225 | | |
236 | 226 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 227 | + | |
| 228 | + | |
244 | 229 | | |
245 | | - | |
246 | 230 | | |
247 | 231 | | |
248 | 232 | | |
| |||
Lines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
42 | 38 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
0 commit comments