Skip to content

Commit e92f4be

Browse files
authored
Create jekyll.yml
1 parent 915c298 commit e92f4be

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

.github/workflows/jekyll.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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: ["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
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+
37+
# Use GitHub Actions' cache to cache dependencies on servers
38+
- uses: actions/cache@v4
39+
with:
40+
path: |
41+
.asdf/**
42+
vendor/bundle
43+
key: ${{ runner.os }}-cache-${{ hashFiles('**/cache.key') }}
44+
restore-keys: |
45+
${{ runner.os }}-cache-
46+
47+
- name: Set up Python
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version: '3.12'
51+
52+
- name: Generate Glossary
53+
run: python scripts/generate_glossary.py
54+
55+
- name: Setup Ruby
56+
uses: ruby/[email protected]
57+
with:
58+
ruby-version: '3.3' # Not needed with a .ruby-version file
59+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
60+
cache-version: 0 # Increment this number if you need to re-download cached gems
61+
- name: Setup Pages
62+
id: pages
63+
uses: actions/configure-pages@v5
64+
- name: Build with Jekyll
65+
# Outputs to the './_site' directory by default
66+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
67+
env:
68+
JEKYLL_ENV: production
69+
- name: Upload artifact
70+
# Automatically uploads an artifact from the './_site' directory by default
71+
uses: actions/upload-pages-artifact@v3
72+
73+
# Deployment job
74+
deploy:
75+
environment:
76+
name: github-pages
77+
url: ${{ steps.deployment.outputs.page_url }}
78+
runs-on: ubuntu-latest
79+
needs: build
80+
steps:
81+
- name: Deploy to GitHub Pages
82+
id: deployment
83+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)