Skip to content

refactor: Use std::cerr for error #56

refactor: Use std::cerr for error

refactor: Use std::cerr for error #56

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}"