1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
6+ name : Deploy Jekyll site to Pages
7+ on :
8+ # Runs on pushes targeting the default branch
9+ push :
10+ branches : ["master"]
11+ # Allows you to run this workflow manually from the Actions tab
12+ workflow_dispatch :
13+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+ permissions :
15+ contents : read
16+ pages : write
17+ id-token : write
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.
20+ concurrency :
21+ group : " pages"
22+ cancel-in-progress : false
23+ jobs :
24+ # Build job
25+ build :
26+ runs-on : ubuntu-24.04
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v4
30+ - name : Setup Ruby
31+ uses : ruby/setup-ruby@v1
32+ with :
33+ ruby-version : ' 3.3' # Not needed with a `.ruby-version` or `.tool-versions`
34+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
35+ - name : Setup Pages
36+ id : pages
37+ uses : actions/configure-pages@v4
38+ - name : Build with Jekyll
39+ # Outputs to the './_site' directory by default
40+ run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
41+ env :
42+ JEKYLL_ENV : production
43+ - name : Upload artifact
44+ # Automatically uploads an artifact from the './_site' directory by default
45+ uses : actions/upload-pages-artifact@v3
46+ # Deployment job
47+ deploy :
48+ environment :
49+ name : github-pages
50+ url : ${{ steps.deployment.outputs.page_url }}
51+ runs-on : ubuntu-latest
52+ needs : build
53+ steps :
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v4
0 commit comments