File tree Expand file tree Collapse file tree 2 files changed +20
-53
lines changed
Expand file tree Collapse file tree 2 files changed +20
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Build and Deploy
1+ # GitHub Actions workflow to build and deploy a Jekyll site to GitHub Pages
2+ name : Build and Deploy Site
23
34on :
45 push :
5- branches : [main]
6-
7- permissions :
8- contents : read
9- pages : write
10- id-token : write
6+ branches :
7+ - main
118
129jobs :
13- deploy :
10+ build :
1411 runs-on : ubuntu-latest
15- environment :
16- name : github-pages
1712
1813 steps :
1914 - uses : actions/checkout@v4
2015
2116 - name : Setup Ruby
2217 uses : ruby/setup-ruby@v1
2318 with :
24- ruby-version : 3.2
19+ ruby-version : ' 3.2'
2520
2621 - name : Install dependencies
27- run : bundle install
22+ run : |
23+ gem install bundler
24+ bundle install
2825
2926 - name : Build site
30- run : bundle exec jekyll build
27+ run : bundle exec jekyll build --trace
3128
32- - name : Deploy
33- uses : peaceiris/ actions-gh- pages@v3
29+ - name : Upload artifact
30+ uses : actions/upload- pages-artifact @v3
3431 with :
35- github_token : ${{ secrets.GITHUB_TOKEN }}
36- publish_dir : ./_site
32+ path : _site
33+
34+ deploy :
35+ needs : build
36+ permissions :
37+ pages : write
38+ id-token : write
39+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments