File tree Expand file tree Collapse file tree 1 file changed +22
-16
lines changed
Expand file tree Collapse file tree 1 file changed +22
-16
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Jekyll site to GitHub Pages
1+ name : Deploy to GitHub Pages (ipcrypt-std.github.io)
22
33on :
44 push :
5- branches : [" main" ]
5+ branches : [ main ]
66 workflow_dispatch :
77
8- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
98permissions :
109 contents : read
1110 pages : write
1211 id-token : write
1312
14- # Allow only one concurrent deployment
1513concurrency :
1614 group : " pages"
17- cancel-in-progress : true
15+ cancel-in-progress : false
1816
1917jobs :
2018 # Build job
2119 build :
2220 runs-on : ubuntu-latest
23- defaults :
24- run :
25- working-directory : ./www
2621 steps :
2722 - name : Checkout
2823 uses : actions/checkout@v4
24+
25+ - name : Setup Pages
26+ uses : actions/configure-pages@v4
27+
2928 - name : Setup Ruby
3029 uses : ruby/setup-ruby@v1
3130 with :
32- ruby-version : ' 3.2'
33- bundler-cache : true
34- working-directory : ./www
35- - name : Setup Pages
36- id : pages
37- uses : actions/configure-pages@v4
31+ ruby-version : ' 3.3'
32+ bundler-cache : false
33+ working-directory : www
34+
3835 - name : Build with Jekyll
39- run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
36+ run : |
37+ cd www
38+ gem update --system
39+ gem install bundler
40+ bundle update --bundler
41+ bundle install
42+ # Build Jekyll site with baseurl set to empty string
43+ JEKYLL_ENV=production bundle exec jekyll build --baseurl=""
4044 env :
4145 JEKYLL_ENV : production
46+
4247 - name : Upload artifact
4348 uses : actions/upload-pages-artifact@v3
4449 with :
45- path : ./www/_site
50+ # Deploy the _site directory to the root of the GitHub Pages site
51+ path : www/_site
4652
4753 # Deployment job
4854 deploy :
You can’t perform that action at this time.
0 commit comments