Skip to content

feat: create article #260

feat: create article

feat: create article #260

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- 'master'
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: pnpm/action-setup@v2.2.2
with:
version: 8.6.10
- name: Install Dependencies
run: pnpm i
- name: Run Tests
run: pnpm test
- name: Build
run: pnpm run build
# Here I run lints after build due to:
# https://github.com/unplugin/unplugin-auto-import/issues/288
- name: Run Lints
run: pnpm run lint
- name: Copy `CNAME` file
run: cp CNAME dist/CNAME
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: page
folder: dist
single-commit: true