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