File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name : Deploy static content to Pages
3
+
4
+ on :
5
+ # Runs on pushes targeting the default branch
6
+ push :
7
+ branches :
8
+ - main
9
+ paths :
10
+ - ' index.html'
11
+ - ' w3c.json'
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
+
28
+ jobs :
29
+ # Single deploy job since we're just deploying
30
+ deploy :
31
+ environment :
32
+ name : github-pages
33
+ url : ${{ steps.deployment.outputs.page_url }}
34
+ runs-on : ubuntu-latest
35
+ steps :
36
+ - name : Checkout
37
+ uses : actions/checkout@v4
38
+ - name : Setup Pages
39
+ uses : actions/configure-pages@v5
40
+ - name : Upload artifact
41
+ uses : actions/upload-pages-artifact@v3
42
+ with :
43
+ # Upload entire repository
44
+ path : ' .'
45
+ - name : Deploy to GitHub Pages
46
+ id : deployment
47
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments