Skip to content

Commit dcf0219

Browse files
Merge pull request #510 from RalphHightower/RalphHightower-patch-18
[cleanup](build): .github/workflows/jekyll-gh-pages.yml
2 parents 57ff1f8 + 195a564 commit dcf0219

File tree

2 files changed

+11
-60
lines changed

2 files changed

+11
-60
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
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

99
on:
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:
@@ -62,4 +63,4 @@ jobs:
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

Comments
 (0)