Skip to content

Commit fe94c99

Browse files
committed
update deploy pages.
1 parent dd412dd commit fe94c99

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/webpage_deploy.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build and Deploy Webpage to GitHub Pages
22

33
on:
4+
# Runs on pushes targeting the default branch
45
push:
56
branches:
67
- master
@@ -9,6 +10,21 @@ on:
910
- .github/workflows/webpage_build.yml
1011
- .github/workflows/webpage_deploy.yml
1112

13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
24+
concurrency:
25+
group: "pages"
26+
cancel-in-progress: false
27+
1228
jobs:
1329
build-webpage:
1430
name: Build Webpage
@@ -19,11 +35,6 @@ jobs:
1935
name: Deploy to GitHub Pages
2036
needs: build-webpage
2137

22-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
23-
permissions:
24-
pages: write # to deploy to Pages
25-
id-token: write # to verify the deployment originates from an appropriate source
26-
2738
# Deploy to the github-pages environment
2839
environment:
2940
name: github-pages

0 commit comments

Comments
 (0)