-
Notifications
You must be signed in to change notification settings - Fork 33
31 lines (29 loc) · 965 Bytes
/
preview.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
name: Preview
on:
push:
branches:
- preview/**
pull_request:
jobs:
build_and_deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/cache/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Build Jekyll site
run: |
mv docker-compose.ci.yml docker-compose.override.yml
docker compose run --rm web /bin/bash -c "(bundle check || bundle install --jobs=3) && bundle exec jekyll build"
- uses: amondnet/now-deployment@v2
with:
zeit-token: ${{ secrets.ZEIT_TOKEN }}
zeit-team-id: ${{ secrets.ZEIT_TEAM_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}
now-org-id: ${{ secrets.NOW_ORG_ID }}
now-project-id: ${{ secrets.NOW_PROJECT_ID }}
working-directory: ./build