Skip to content

Commit dec04d7

Browse files
committed
Generate docs conditionally only for main branch
1 parent 1efab09 commit dec04d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
needs: synthesis
9999
permissions:
100100
contents: read
101-
packages: read
101+
packages: write
102102
pages: write
103103
id-token: write
104104
environment:
@@ -111,6 +111,7 @@ jobs:
111111
credentials:
112112
username: ${{ github.actor }}
113113
password: ${{ secrets.github_token }}
114+
if: ${{ github.ref == 'ref/head/main' }}
114115
steps:
115116
- uses: actions/configure-pages@v5
116117
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)