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- # This workflow uses actions that are not certified by GitHub.
2- # They are provided by a third-party and are governed by
3- # separate terms of service, privacy policy, and support
4- # documentation.
5-
6- # Build and Deploy Ocre Docs to GitHub Pages
71name : Publish
8-
92on :
103 push :
114 branches : ["main"]
125 pull_request :
136 branches : ["main"]
14-
15- # Allows you to run this workflow manually from the Actions tab
167 workflow_dispatch :
178
18- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
199permissions :
2010 contents : read
2111 pages : write
2212 id-token : write
2313
24- # Allow one concurrent deployment
2514concurrency :
2615 group : " pages"
2716 cancel-in-progress : true
@@ -36,23 +25,22 @@ jobs:
3625 - name : Setup Ruby
3726 uses : ruby/setup-ruby@v1
3827 with :
39- ruby-version : ' 3.3 ' # Not needed with a .ruby-version file
40- bundler-cache : true # runs 'bundle install' and caches installed gems automatically
41- cache-version : 0 # Increment this number if you need to re-download cached gems
28+ ruby-version : ' 3.4 '
29+ bundler-cache : true
30+ cache-version : 0
4231 - name : Setup Pages
4332 id : pages
4433 uses : actions/configure-pages@v5
4534 - name : Build with Jekyll
46- # Outputs to the './_site' directory by default
4735 run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4836 env :
4937 JEKYLL_ENV : production
5038 - name : Upload artifact
51- # Automatically uploads an artifact from the './_site' directory by default
5239 uses : actions/upload-pages-artifact@v3
5340
54- # Deployment job
41+ # Deployment job - only runs on push to main
5542 deploy :
43+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
5644 environment :
5745 name : github-pages
5846 url : ${{ steps.deployment.outputs.page_url }}
6149 steps :
6250 - name : Deploy to GitHub Pages
6351 id : deployment
64- uses : actions/deploy-pages@v4
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments