Skip to content

Commit 3702ef3

Browse files
authored
Update jekyll.yml
1 parent f0a523a commit 3702ef3

File tree

1 file changed

+12
-31
lines changed

1 file changed

+12
-31
lines changed

.github/workflows/jekyll.yml

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,37 @@
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-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7-
name: Deploy Jekyll site to Pages
1+
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
82

93
on:
10-
# Runs on pushes targeting the default branch
114
push:
125
branches: ["main"]
13-
14-
# Allows you to run this workflow manually from the Actions tab
156
workflow_dispatch:
167

17-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
188
permissions:
199
contents: read
2010
pages: write
2111
id-token: write
2212

23-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2513
concurrency:
2614
group: "pages"
2715
cancel-in-progress: false
2816

2917
jobs:
30-
# Build job
3118
build:
3219
runs-on: ubuntu-latest
3320
steps:
3421
- name: Checkout
35-
uses: actions/checkout@v4
36-
- name: Setup Ruby
37-
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
38-
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
39-
with:
40-
ruby-version: '3.1' # Not needed with a .ruby-version file
41-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42-
cache-version: 0 # Increment this number if you need to re-download cached gems
22+
uses: actions/checkout@v3
4323
- name: Setup Pages
44-
id: pages
45-
uses: actions/configure-pages@v5
24+
uses: actions/configure-pages@v3
4625
- name: Build with Jekyll
47-
# Outputs to the './_site' directory by default
48-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
49-
env:
50-
JEKYLL_ENV: production
26+
uses: actions/jekyll-build-pages@v1
27+
with:
28+
source: ./
29+
destination: ./_site
5130
- name: Upload artifact
52-
# Automatically uploads an artifact from the './_site' directory by default
5331
uses: actions/upload-pages-artifact@v3
32+
with:
33+
name: github-pages-artifact # Ensure the artifact is named
5434

55-
# Deployment job
5635
deploy:
5736
environment:
5837
name: github-pages
@@ -62,4 +41,6 @@ jobs:
6241
steps:
6342
- name: Deploy to GitHub Pages
6443
id: deployment
65-
uses: actions/deploy-pages@v4
44+
uses: actions/deploy-pages@v2
45+
with:
46+
artifact_name: github-pages-artifact # Match the name used in the upload step

0 commit comments

Comments
 (0)