-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.32 KB
/
build-prod.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
name: Build Website (Production)
on:
push:
branches:
- master
paths-ignore:
- ".*/**"
- ".*"
- "!.cloudflare/**"
- "!.well-known/**"
- "!.tool-versions"
- "bin/**"
- "frontmatter.json"
- "LICENSE*"
- "SUPPORT.md"
workflow_dispatch: {}
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.191.0
with:
bundler-cache: true
- name: Build with Jekyll
env:
JEKYLL_ENV: production
run: |
bundle exec jekyll build
cp .cloudflare/_headers _site/_headers
cp .cloudflare/_redirects _site/_redirects
- name: Production 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
FOLDER: _site
SQUASH_HISTORY: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build: ({sha}) {msg}"
COMMIT_NAME: github-actions[bot]
COMMIT_EMAIL: github-actions[bot]@users.noreply.github.com