-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 771 Bytes
/
ci.yml
File metadata and controls
35 lines (31 loc) · 771 Bytes
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
name: CI
on:
push:
branches: [main]
pull_request:
types: [opened, synchronized]
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Build site
env:
JEKYLL_ENV: production
run: |
bundle exec jekyll build
touch ./_site/.nojekyll
rm -f ./_site/feed.xml
- name: Deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: _site