docs: SR-ZG9042M -> SR-ZG9042MP #6331
Workflow file for this run
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 β and Deploy π | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.ref }} | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Setup pnpm β | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Setup Node.js β | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies π | |
run: pnpm install --frozen-lockfile | |
- name: Lint | |
run: pnpm run pretty:check | |
- name: Build π | |
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' | |
run: pnpm run build | |
- name: Run tests π©Ί | |
run: pnpm run test | |
- name: Add build.txt π | |
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' | |
run: | | |
git log --pretty=format:'%h' -n 1 > dist/build.txt | |
echo >> dist/build.txt | |
date +%F_%T >> dist/build.txt | |
- name: Deploy π | |
if: github.ref == 'refs/heads/master' | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist # The folder the action should deploy. | |
single-commit: true | |
clean: true |