File tree Expand file tree Collapse file tree 1 file changed +26
-12
lines changed Expand file tree Collapse file tree 1 file changed +26
-12
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy to GitHub Pages
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name : Deploy static content to Pages
2
3
3
4
on :
5
+ # Runs on pushes targeting the default branch
4
6
push :
5
- branches :
6
- - main
7
+ branches : ["main"]
8
+
9
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10
+ permissions :
11
+ contents : read
12
+ pages : write
13
+ id-token : write
14
+
15
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17
+ concurrency :
18
+ group : " pages"
19
+ cancel-in-progress : false
7
20
8
21
jobs :
9
- # Deploy job
22
+ # Single deploy job since we're just deploying
10
23
deploy :
11
- # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
12
- permissions :
13
- pages : write # to deploy to Pages
14
- id-token : write # to verify the deployment originates from an appropriate source
15
-
16
- # Deploy to the github-pages environment
17
24
environment :
18
25
name : github-pages
19
26
url : ${{ steps.deployment.outputs.page_url }}
20
-
21
- # Specify runner + deployment step
22
27
runs-on : ubuntu-latest
23
28
steps :
29
+ - name : Checkout
30
+ uses : actions/checkout@v4
31
+ - name : Setup Pages
32
+ uses : actions/configure-pages@v5
33
+ - name : Upload artifact
34
+ uses : actions/upload-pages-artifact@v3
35
+ with :
36
+ # Upload entire repository
37
+ path : ' .'
24
38
- name : Deploy to GitHub Pages
25
39
id : deployment
26
40
uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments