Skip to content

Commit 0bd4b80

Browse files
committed
Update: rename workflow for deploying to GitHub Pages and adjust permissions
1 parent 7c12dcd commit 0bd4b80

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
name: docs
1+
name: Deploy to Github Pages
22

33
on:
4-
# trigger deployment on every push to main branch
54
push:
65
branches: [main]
7-
# trigger deployment manually
8-
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
911

1012
jobs:
1113
docs:
14+
environment:
15+
name: github-pages
16+
url: ${{ steps.deployment.outputs.page_url }}
17+
1218
runs-on: ubuntu-latest
1319

1420
steps:

0 commit comments

Comments
 (0)