File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed
Expand file tree Collapse file tree 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 GitHub Pages
33
44on :
55 # Runs on pushes targeting the default branch
@@ -22,22 +22,30 @@ concurrency:
2222 cancel-in-progress : false
2323
2424jobs :
25- # Single deploy job since we're just deploying
26- deploy :
27- environment :
28- name : github-pages
29- url : ${{ steps.deployment.outputs.page_url }}
25+ # Build job
26+ build :
3027 runs-on : ubuntu-latest
3128 steps :
3229 - name : Checkout
3330 uses : actions/checkout@v4
3431 - name : Setup Pages
3532 uses : actions/configure-pages@v5
33+ - name : Build with Jekyll
34+ uses : actions/jekyll-build-pages@v1
35+ with :
36+ source : ./
37+ destination : ./_site
3638 - name : Upload artifact
3739 uses : actions/upload-pages-artifact@v3
38- with :
39- # Upload entire repository
40- path : ' .'
40+
41+ # Deployment job
42+ deploy :
43+ environment :
44+ name : github-pages
45+ url : ${{ steps.deployment.outputs.page_url }}
46+ runs-on : ubuntu-latest
47+ needs : build
48+ steps :
4149 - name : Deploy to GitHub Pages
4250 id : deployment
4351 uses : actions/deploy-pages@v5
You can’t perform that action at this time.
0 commit comments