Skip to content

Commit e85325d

Browse files
authored
Merge pull request #83 from danbaruka/main
fix: configure GitHub Actions as Pages publishing source
2 parents aa1da8c + 3f7204e commit e85325d

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ on:
1212
# Review gh actions docs if you want to further define triggers, paths, etc
1313
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
1414

15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
1529
jobs:
1630
build:
1731
name: Build Docusaurus
@@ -40,11 +54,6 @@ jobs:
4054
name: Deploy to GitHub Pages
4155
needs: build
4256

43-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
44-
permissions:
45-
pages: write # to deploy to Pages
46-
id-token: write # to verify the deployment originates from an appropriate source
47-
4857
# Deploy to the github-pages environment
4958
environment:
5059
name: github-pages

0 commit comments

Comments
 (0)