File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
1+ name : Deploy Jekyll with Just the Docs
32
43on :
5- # Runs on pushes targeting the default branch
64 push :
75 branches : ["main"]
8-
9- # Allows you to run this workflow manually from the Actions tab
106 workflow_dispatch :
117
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
138permissions :
149 contents : read
1510 pages : write
1611 id-token : write
1712
18- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2013concurrency :
2114 group : " pages"
22- cancel-in-progress : false
15+ cancel-in-progress : true
2316
2417jobs :
25- # Build job
2618 build :
2719 runs-on : ubuntu-latest
20+
2821 steps :
2922 - name : Checkout
3023 uses : actions/checkout@v4
24+
3125 - name : Setup Pages
3226 uses : actions/configure-pages@v5
33- - name : Build with Jekyll
34- uses : actions/jekyll-build-pages@v1
27+
28+ - name : Setup Ruby
29+ uses : ruby/setup-ruby@v1
3530 with :
36- source : ./
37- destination : ./_site
31+ ruby-version : " 3.3"
32+ bundler-cache : true
33+
34+ - name : Install dependencies
35+ run : bundle install
36+
37+ - name : Build site
38+ run : bundle exec jekyll build -d _site
39+
3840 - name : Upload artifact
3941 uses : actions/upload-pages-artifact@v3
42+ with :
43+ path : ./_site
4044
41- # Deployment job
4245 deploy :
4346 environment :
4447 name : github-pages
4548 url : ${{ steps.deployment.outputs.page_url }}
4649 runs-on : ubuntu-latest
4750 needs : build
51+
4852 steps :
4953 - name : Deploy to GitHub Pages
5054 id : deployment
You can’t perform that action at this time.
0 commit comments