mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
docs(deployment): add permissions config to github action file in v2.4.3 (#9377)
This commit is contained in:
parent
e17784effa
commit
df42d891c2
1 changed files with 6 additions and 0 deletions
|
@ -390,6 +390,9 @@ on:
|
|||
# Review gh actions docs if you want to further define triggers, paths, etc
|
||||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy to GitHub Pages
|
||||
|
@ -488,6 +491,9 @@ on:
|
|||
push:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
test-deploy:
|
||||
if: github.event_name != 'push'
|
||||
|
|
Loading…
Add table
Reference in a new issue