File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ concurrency :
13+ group : " pages"
14+ cancel-in-progress : false
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+
23+ - name : Setup Ruby
24+ uses : ruby/setup-ruby@v1
25+ with :
26+ ruby-version : ' 3.1'
27+ bundler-cache : true
28+
29+ - name : Build with Jekyll
30+ run : bundle exec jekyll build
31+ env :
32+ JEKYLL_ENV : production
33+
34+ - name : Upload artifact
35+ uses : actions/upload-pages-artifact@v3
36+ with :
37+ path : ./_site
38+
39+ deploy :
40+ environment :
41+ name : github-pages
42+ url : ${{ steps.deployment.outputs.page_url }}
43+ runs-on : ubuntu-latest
44+ needs : build
45+ steps :
46+ - name : Deploy to GitHub Pages
47+ id : deployment
48+ uses : actions/deploy-pages@v4
Load diff This file was deleted.
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Deploy PR Preview
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - reopened
8+ - synchronize
9+ - closed
10+
11+ concurrency : preview-${{ github.ref }}
12+
13+ jobs :
14+ deploy-preview :
15+ runs-on : ubuntu-18.04
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+
20+ - name : Setup Ruby
21+ uses : ruby/setup-ruby@v1
22+ with :
23+ ruby-version : ' 3.1'
24+ bundler-cache : true
25+
26+ - name : Build Jekyll site
27+ run : bundle exec jekyll build
28+ env :
29+ JEKYLL_ENV : production
30+
31+ - name : Deploy preview
32+ uses : rossjrw/pr-preview-action@v1
33+ with :
34+ source-dir : ./_site
35+ preview-branch : gh-pages
36+ umbrella-dir : pr-preview
You can’t perform that action at this time.
0 commit comments