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 and Deploy Jekyll
2+ on :
3+ push :
4+ branches : [ main ]
5+ workflow_dispatch :
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ concurrency :
13+ group : " pages"
14+ cancel-in-progress : true
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - uses : ruby/setup-ruby@v1
23+ with :
24+ ruby-version : ' 3.2'
25+ bundler-cache : true
26+
27+ - name : Install dependencies
28+ run : bundle install --jobs 4 --retry 3
29+
30+ - name : Build site
31+ env :
32+ JEKYLL_ENV : production
33+ run : bundle exec jekyll build --trace
34+
35+ - name : Upload artifact
36+ uses : actions/upload-pages-artifact@v3
37+ with :
38+ path : _site
39+
40+ deploy :
41+ needs : build
42+ environment :
43+ name : github-pages
44+ url : ${{ steps.deployment.outputs.page_url }}
45+ runs-on : ubuntu-latest
46+ steps :
47+ - id : deployment
48+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments