File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Deploy Webpage to GitHub Pages
2
2
3
3
on :
4
+ # Runs on pushes targeting the default branch
4
5
push :
5
6
branches :
6
7
- master
9
10
- .github/workflows/webpage_build.yml
10
11
- .github/workflows/webpage_deploy.yml
11
12
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
+
12
28
jobs :
13
29
build-webpage :
14
30
name : Build Webpage
19
35
name : Deploy to GitHub Pages
20
36
needs : build-webpage
21
37
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
-
27
38
# Deploy to the github-pages environment
28
39
environment :
29
40
name : github-pages
You can’t perform that action at this time.
0 commit comments