-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (34 loc) · 836 Bytes
/
deploy.yaml
File metadata and controls
36 lines (34 loc) · 836 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
36
name: Deploy
on:
push:
branches:
- jekyll
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.6
bundler-cache: true
- name: Install dependencies
run: |
sudo apt-get install libtidy-dev
bundle install --jobs 4 --retry 3
- name: Test
run: bundle exec rake test
- name: Gen page
run: bundle exec rake build
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: master
build_dir: _site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}