File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-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 : ["main"]
8
+ paths : " site/**"
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch :
12
+
13
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
+ permissions :
15
+ contents : read
16
+ pages : write
17
+ id-token : write
18
+
19
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21
+ concurrency :
22
+ group : " pages"
23
+ cancel-in-progress : false
24
+
25
+ jobs :
26
+ # Single deploy job since we're just deploying
27
+ deploy :
28
+ environment :
29
+ name : github-pages
30
+ url : ${{ steps.deployment.outputs.page_url }}
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - name : Checkout
34
+ uses : actions/checkout@v4
35
+ - name : Setup Pages
36
+ uses : actions/configure-pages@v4
37
+ - name : Upload artifact
38
+ uses : actions/upload-pages-artifact@v2
39
+ with :
40
+ path : ' ./site'
41
+ - name : Deploy to GitHub Pages
42
+ id : deployment
43
+ uses : actions/deploy-pages@v3
You can’t perform that action at this time.
0 commit comments