Skip to content

Add new blog

Add new blog #379

Workflow file for this run

# Copyright Jiaqi Liu

Check failure on line 1 in .github/workflows/ci-cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-cd.yml

Invalid workflow file

`pull_requests` is not a valid event name
---
name: CI/CD
"on":
pull_requests:
push:
branches:
- master
jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: |
npm install -g pnpm
pnpm install
pnpm add sharp
pnpm build
- name: Deploy blogs to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
enable_jekyll: false
user_name: QubitPi
user_email: [email protected]