File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2
+ name : Deploy Jekyll with GitHub Pages dependencies preinstalled
3
+
4
+ on :
5
+ # Runs on pushes targeting the default branch
6
+ push :
7
+ branches : ["main"]
8
+
9
+ # Allows you to run this workflow manually from the Actions tab
10
+ workflow_dispatch :
11
+
12
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
+ permissions :
14
+ contents : read
15
+ pages : write
16
+ id-token : write
17
+
18
+ # Allow one concurrent deployment
19
+ concurrency :
20
+ group : " pages"
21
+ cancel-in-progress : true
22
+
23
+ jobs :
24
+ # Build job
25
+ build :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v3
30
+ - name : Setup Pages
31
+ uses : actions/configure-pages@v2
32
+ - name : Build with Jekyll
33
+ uses : actions/jekyll-build-pages@v1
34
+ with :
35
+ source : ./
36
+ destination : ./_site
37
+ - name : Upload artifact
38
+ uses : actions/upload-pages-artifact@v1
39
+
40
+ # Deployment job
41
+ deploy :
42
+ environment :
43
+ name : github-pages
44
+ url : ${{ steps.deployment.outputs.page_url }}
45
+ runs-on : ubuntu-latest
46
+ needs : build
47
+ steps :
48
+ - name : Deploy to GitHub Pages
49
+ id : deployment
50
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments