File tree Expand file tree Collapse file tree 2 files changed +59
-27
lines changed
Expand file tree Collapse file tree 2 files changed +59
-27
lines changed Original file line number Diff line number Diff line change 1+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
2+ # This workflow will build and deploy new commits with changes in docs directory to GitHub pages
3+
4+ name : Build and Deploy Docs
5+
6+ on :
7+ workflow_dispatch :
8+ push :
9+ branches : [main]
10+ paths : [docs/**]
11+
12+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+ permissions :
14+ contents : read
15+ pages : write
16+ id-token : write
17+
18+ # Allow one concurrent deployment
19+ concurrency :
20+ group : pages
21+ cancel-in-progress : true
22+
23+ jobs :
24+ build :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v4
29+ - name : Setup Ruby
30+ uses : ruby/setup-ruby@v1
31+ with :
32+ ruby-version : " 3.3"
33+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
34+ - name : Setup Pages
35+ id : pages
36+ uses : actions/configure-pages@v5
37+ - name : Build with Jekyll
38+ # Outputs to the 'docs/_site' directory
39+ run : |
40+ cd docs
41+ bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
42+ env :
43+ JEKYLL_ENV : production
44+ - name : Upload artifact
45+ # Uploads artifact from the 'docs/_site' directory
46+ uses : actions/upload-pages-artifact@v3
47+ with :
48+ path : docs/_site
49+
50+ deploy :
51+ environment :
52+ name : github-pages
53+ url : ${{ steps.deployment.outputs.page_url }}
54+ runs-on : ubuntu-latest
55+ needs : build
56+ steps :
57+ - name : Deploy to GitHub Pages
58+ id : deployment
59+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments