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