44# documentation.
55
66# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7- name : Deploy Jekyll site to Pages
7+ name: jekyll.yml – Deploy Jekyll site to Pages
88
99on:
1010 # Runs on pushes targeting the default branch
1111 push:
12- branches : ["main"]
12+ branches: [ "main", " _ staging", "next" ]
1313
1414 # Allows you to run this workflow manually from the Actions tab
1515 workflow_dispatch:
@@ -32,25 +32,26 @@ jobs:
3232 runs-on: ubuntu-latest
3333 steps:
3434 - name: Checkout
35- uses : actions/checkout@v4
35+ uses: actions/checkout@v4.2.2
3636 - name: Setup Ruby
37- uses : ruby/setup-ruby@217c988b8c2bf2bacb2d5c78a7e7b18f8c34daed # v1.200.0
37+ uses: ruby/setup-ruby@v1.201.0
3838 with:
3939 ruby-version: '3.3.6' # Not needed with a .ruby-version file
4040 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
42- LOG_LEVEL : debug
41+ cache-version: 1 # Increment this number if you need to re-download cached gems
4342 - name: Setup Pages
4443 id: pages
45- uses : actions/configure-pages@v5
44+ uses: actions/configure-pages@v5.0.0
4645 - name: Build with Jekyll
4746 # Outputs to the './_ site' directory by default
48- run : bundle exec jekyll build --incremental -- baseurl "${{ steps.pages.outputs.base_path }}"
47+ run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4948 env:
5049 JEKYLL_ENV: production
50+ JEKYLL_GITHUB_TOKEN: ${{secrets.JEKYLL_METADATA_TOKEN}}
51+ LOG_LEVEL: debug
5152 - name: Upload artifact
5253 # Automatically uploads an artifact from the './_ site' directory by default
53- uses : actions/upload-pages-artifact@v3
54+ uses: actions/upload-pages-artifact@v3.0.1
5455
5556 # Deployment job
5657 deploy:
6263 steps:
6364 - name: Deploy to GitHub Pages
6465 id: deployment
65- uses : actions/deploy-pages@v4
66+ uses: actions/deploy-pages@v4.0.5
0 commit comments