refactor: Use std::cerr for error #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |