-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.34 KB
/
build-dev.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
49
50
51
52
53
54
55
56
name: Build Website (Test)
on:
push:
branches:
- "dev-*"
- "dev/**"
- "test-*"
- "test/**"
paths-ignore:
- ".*/**"
- ".*"
- "!.cloudflare/**"
- "!.well-known/**"
- "!.tool-versions"
- "bin/**"
- "frontmatter.json"
- "LICENSE*"
- "SUPPORT.md"
jobs:
main:
name: Build Website
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4.1.1
- name: Setup Ruby
env:
BUNDLE_SPECIFIC_PLATFORM: 1
uses: ruby/setup-ruby@v1.202.0
with:
bundler-cache: true
- name: Build with Jekyll
env:
JEKYLL_ENV: development
run: |
bundle exec jekyll build
cp .cloudflare/_headers _site/_headers
cp .cloudflare/_redirects _site/_redirects
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
# https://github.com/git-lfs/git-lfs/issues/5749
GIT_CLONE_PROTECTION_ACTIVE: false
REPO: self
BRANCH: build-test
FOLDER: _site
SQUASH_HISTORY: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build Test: ({sha}) {msg}"
COMMIT_NAME: github-actions[bot]
COMMIT_EMAIL: github-actions[bot]@users.noreply.github.com