-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.11 KB
/
build-single-header.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
name: Build single header
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- "LICENSE"
- "README.md"
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: |
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Build single header
run: pnpm build-single-header
- name: Dump git commit SHA
run: echo "${GITHUB_SHA}" > git_commit_sha.txt
shell: bash
working-directory: ./out/single-header/
- name: Skip Vercel build
run: mkdir ./out/single-header/docs/ && cp docs/vercel.json ./out/single-header/docs/
shell: bash
- name: Commit single-header-snapshot
uses: nicholasgriffintn/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
BRANCH: single-header-snapshot
FOLDER: ./out/single-header
MESSAGE: "build: ({sha}) {msg}"