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+ # Workflow for building and deploying a Jekyll site to GitHub Pages
2+ name : Deploy Jekyll site to Pages
33
44on :
5- # Runs on pushes targeting the default branch
65 push :
76 branches : ["main"]
8-
9- # Allows you to run this workflow manually from the Actions tab
107 workflow_dispatch :
118
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139permissions :
1410 contents : read
1511 pages : write
1612 id-token : write
1713
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.
2014concurrency :
2115 group : " pages"
2216 cancel-in-progress : false
2317
2418jobs :
25- # Build job
2619 build :
2720 runs-on : ubuntu-latest
2821 steps :
2922 - name : Checkout
3023 uses : actions/checkout@v4
24+
25+ - name : Setup Ruby
26+ uses : ruby/setup-ruby@v1
27+ with :
28+ ruby-version : ' 3.3'
29+ bundler-cache : true
30+
3131 - name : Setup Pages
32+ id : pages
3233 uses : actions/configure-pages@v5
34+
3335 - name : Build with Jekyll
34- uses : actions/ jekyll- build- pages@v1
35- with :
36- source : ./
37- destination : ./_site
36+ run : bundle exec jekyll build --baseurl "${{ steps. pages.outputs.base_path }}"
37+ env :
38+ JEKYLL_ENV : production
39+
3840 - name : Upload artifact
3941 uses : actions/upload-pages-artifact@v3
4042
41- # Deployment job
4243 deploy :
4344 environment :
4445 name : github-pages
You can’t perform that action at this time.
0 commit comments