-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.09 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 🚀 Deploy
on:
push:
branches:
- main
release:
types: [published]
pull_request: {}
permissions:
contents: write
jobs:
build:
name: 📚 Build
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 💎 Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: 📥 Install Gems
run: bundle install
- name: 📥 Install NPM Deps
run: npm install
- name: 🏗️ Build
run: bundle exec jekyll build
- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: _site