1- name : Deploy Jekyll Site to GitHub Pages
2-
1+ name : Deploy Documentation
32on :
43 push :
5- branches : [ main ]
4+ branches : [main]
65 pull_request :
7- branches : [ main ]
8-
9- permissions :
10- contents : read
11- pages : write
12- id-token : write
13-
14- concurrency :
15- group : " pages"
16- cancel-in-progress : true
6+ branches : [main]
177
188jobs :
199 build :
2010 runs-on : ubuntu-latest
2111 steps :
22- - name : Checkout
12+ - name : Checkout Repository
2313 uses : actions/checkout@v5
24-
25- - name : Setup Ruby
26- uses : ruby/setup-ruby@v1
2714 with :
28- ruby-version : ' 3.1'
29- bundler-cache : true
30- cache-version : 0
15+ persist-credentials : false
3116
32- - name : Setup Pages
33- id : pages
34- uses : actions/configure-pages@v4
17+ - name : Set up Python
18+ uses : actions/setup-python@v6
19+ with :
20+ python-version : ' 3.x'
3521
36- - name : Build with Jekyll
37- run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
38- env :
39- JEKYLL_ENV : production
22+ - name : Install Dependencies
23+ run : pipx run nox -s docs
4024
41- - name : Upload artifact
42- uses : actions/upload-pages-artifact@v3
25+ - name : Upload docs build as artifact
26+ uses : actions/upload-pages-artifact@v4
27+ with :
28+ name : ${{ github.event.repository.name }}_docs
29+ path : ${{ github.workspace }}/site
4330
4431 deploy :
4532 if : github.ref == 'refs/heads/main'
33+ runs-on : ubuntu-latest
34+ needs : [build]
35+ permissions :
36+ # to deploy to Pages
37+ pages : write
38+ # to verify the deployment originates from an appropriate source
39+ id-token : write
40+ # Deploy to the github-pages environment
4641 environment :
4742 name : github-pages
4843 url : ${{ steps.deployment.outputs.page_url }}
49- runs-on : ubuntu-latest
50- needs : build
5144 steps :
5245 - name : Deploy to GitHub Pages
5346 id : deployment
54- uses : actions/deploy-pages@v4
47+ uses : actions/deploy-pages@v4
48+ with :
49+ artifact_name : ${{ github.event.repository.name }}_docs
0 commit comments