Skip to content

Commit a0d4f1f

Browse files
committed
Explain GitHub pages deployment
1 parent c0eb521 commit a0d4f1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
path: book/html
2828
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'
2929

30+
# Deploy is run as a separate job as it needs elevated permissions
3031
deploy:
3132
name: deploy
32-
needs: test
33+
needs: test # the `test` job uploads the pages artifact
3334
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'
3435
permissions:
3536
pages: write

0 commit comments

Comments
 (0)