File tree 1 file changed +18
-10
lines changed
1 file changed +18
-10
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
1
+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2
+ name : Deploy Jekyll with GitHub Pages dependencies preinstalled
3
3
4
4
on :
5
5
# Runs on pushes targeting the default branch
@@ -21,22 +21,30 @@ concurrency:
21
21
cancel-in-progress : true
22
22
23
23
jobs :
24
- # Single deploy job since we're just deploying
25
- deploy :
26
- environment :
27
- name : github-pages
28
- url : ${{ steps.deployment.outputs.page_url }}
24
+ # Build job
25
+ build :
29
26
runs-on : ubuntu-latest
30
27
steps :
31
28
- name : Checkout
32
29
uses : actions/checkout@v3
33
30
- name : Setup Pages
34
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
35
37
- name : Upload artifact
36
38
uses : actions/upload-pages-artifact@v1
37
- with :
38
- # Upload entire repository
39
- path : ' .'
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 :
40
48
- name : Deploy to GitHub Pages
41
49
id : deployment
42
50
uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments