Skip to content

Commit 8a4a99d

Browse files
committed
re-add github actions workflow
1 parent 433e6dd commit 8a4a99d

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.github/workflows/jekyll.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Deploy Jekyll Site
2+
3+
on:
4+
push:
5+
branches: ["production"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
- name: Setup Ruby
24+
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
25+
with:
26+
ruby-version: '3.3' # Not needed with a .ruby-version file
27+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
28+
cache-version: 0 # Increment this number if you need to re-download cached gems
29+
- name: Setup Pages
30+
id: pages
31+
uses: actions/configure-pages@v5
32+
- name: Build with Jekyll
33+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
34+
env:
35+
JEKYLL_ENV: production
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
layout: home
33
# Index page
4-
---
4+
---

0 commit comments

Comments
 (0)