Skip to content

Commit 225b855

Browse files
sneakers-the-ratlwasser
authored andcommitted
update to gh actions page build
1 parent 44807a3 commit 225b855

File tree

5 files changed

+77
-1
lines changed

5 files changed

+77
-1
lines changed

.github/workflows/gh-pages.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
9+
on:
10+
# Runs on pushes targeting the default branch
11+
push:
12+
branches: [$default-branch]
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
18+
permissions:
19+
contents: read
20+
pages: write
21+
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+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Setup Ruby
37+
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
38+
with:
39+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
40+
cache-version: 0 # Increment this number if you need to re-download cached gems
41+
- name: Setup Pages
42+
id: pages
43+
uses: actions/configure-pages@v5
44+
- name: Build with Jekyll
45+
# Outputs to the './_site' directory by default
46+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
47+
env:
48+
JEKYLL_ENV: production
49+
- name: Upload artifact
50+
# Automatically uploads an artifact from the './_site' directory by default
51+
uses: actions/upload-pages-artifact@v3
52+
53+
# Deployment job
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ all_contribs.pickle
1010
.vale.ini
1111
styles/*
1212
tmp/*
13+
.bundle

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.3.3

Gemfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
source "https://rubygems.org"
22

3-
gem "github-pages", group: :jekyll_plugins
43
gem "jekyll-include-cache"
54
gem "webrick"
65
gem "html-proofer"
76
gem "ffi", "= 1.16.3"
7+
8+
gem "jekyll", "~>4.3.3"
9+
10+
group :jekyll_plugins do
11+
gem "jekyll-paginate", "~> 1.1"
12+
gem "jekyll-sitemap", "~> 1.4"
13+
gem "jekyll-gist", "~> 1.5"
14+
gem "jekyll-feed", "~> 0.17.0"
15+
gem "jemoji", "~> 0.13.0"
16+
gem "jekyll-redirect-from", "~> 0.16.0"
17+
end

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ kramdown:
217217
sass:
218218
sass_dir: _sass
219219
style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
220+
quiet_deps: true
220221

221222
# Outputting
222223
permalink: /:categories/:title/

0 commit comments

Comments
 (0)