Skip to content

Commit 5d60bf4

Browse files
authored
Update jekyll.yml
1 parent 04cdbd8 commit 5d60bf4

File tree

1 file changed

+9
-43
lines changed

1 file changed

+9
-43
lines changed

.github/workflows/jekyll.yml

+9-43
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,30 @@
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
8-
1+
name: Build Jekyll site
92
on:
10-
# Runs on pushes targeting the default branch
11-
push:
12-
branches: ["master"]
13-
14-
# Allows you to run this workflow manually from the Actions tab
15-
workflow_dispatch:
16-
17-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
3+
push:
4+
branches: ["main"]
185
permissions:
196
contents: read
207
pages: write
218
id-token: write
22-
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.
25-
concurrency:
26-
group: "pages"
27-
cancel-in-progress: false
28-
299
jobs:
30-
# Build job
3110
build:
3211
runs-on: ubuntu-latest
3312
steps:
3413
- name: Checkout
3514
uses: actions/checkout@v3
36-
- name: Setup Ruby
37-
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
38-
with:
39-
ruby-version: '3.1' # 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
4215
- name: Setup Pages
43-
id: pages
4416
uses: actions/configure-pages@v3
45-
- name: Build with Jekyll
46-
# Outputs to the './_site' directory by default
47-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
48-
env:
49-
JEKYLL_ENV: production
17+
- name: Build
18+
uses: actions/jekyll-build-pages@v1
5019
- name: Upload artifact
51-
# Automatically uploads an artifact from the './_site' directory by default
52-
uses: actions/upload-pages-artifact@v2
53-
54-
# Deployment job
20+
uses: actions/upload-pages-artifact@v1
5521
deploy:
56-
environment:
57-
name: github-pages
58-
url: ${{ steps.deployment.outputs.page_url }}
5922
runs-on: ubuntu-latest
6023
needs: build
6124
steps:
6225
- name: Deploy to GitHub Pages
6326
id: deployment
6427
uses: actions/deploy-pages@v2
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)