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+ name : Build + Deploy
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ # Allow manual runs
8+ workflow_dispatch :
9+
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+ concurrency :
19+ group : " pages"
20+ cancel-in-progress : false
21+
22+ jobs :
23+ build :
24+ name : Build
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v6.0.3
29+ - name : Setup Ruby
30+ # https://github.com/ruby/setup-ruby/releases/tag/v1.313.0
31+ uses : ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af
32+ with :
33+ ruby-version : ' 4.0.5'
34+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
35+ cache-version : 0 # Increment this number if you need to re-download cached gems
36+ - name : Setup Pages
37+ id : pages
38+ uses : actions/configure-pages@v6
39+ - name : Build with Jekyll
40+ # Outputs to the './_site' directory by default
41+ run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
42+ env :
43+ JEKYLL_ENV : production
44+ - name : Upload artifact
45+ # Automatically uploads an artifact from the './_site' directory by default
46+ uses : actions/upload-pages-artifact@v5
47+
48+ deploy :
49+ name : Deploy
50+ environment :
51+ name : github-pages
52+ url : ${{ steps.deployment.outputs.page_url }}
53+ runs-on : ubuntu-latest
54+ needs : build
55+ steps :
56+ - name : Deploy to GitHub Pages
57+ id : deployment
58+ uses : actions/deploy-pages@v5
You can’t perform that action at this time.
0 commit comments