Skip to content

Commit bc3012c

Browse files
committed
GH action to install jekyll dependencies and update GH pages
1 parent 4b74b30 commit bc3012c

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["new-design"]
7+
8+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
9+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
10+
concurrency:
11+
group: "pages"
12+
cancel-in-progress: false
13+
14+
jobs:
15+
# Build job
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Setup Ruby
22+
uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
23+
with:
24+
ruby-version: '3.3' # Not needed with a .ruby-version file
25+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26+
- name: Build with Jekyll
27+
# Outputs to the './_site' directory by default
28+
run: bundle exec jekyll build
29+
env:
30+
JEKYLL_ENV: production
31+
- name: Upload artifact
32+
id: github-pages
33+
uses: actions/upload-pages-artifact@v1
34+
with:
35+
name: github-pages
36+
path: _site/
37+
38+
# Deployment job
39+
deploy:
40+
needs: build
41+
permissions:
42+
pages: write
43+
id-token: write
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)