Skip to content

ci: cd with ghp

ci: cd with ghp #1

Workflow file for this run

name: github pages
on:
push:
branches:
- * # Set a branch to deploy

Check failure on line 6 in .github/workflows/cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
jobs:
deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [18.x, 20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://registry.yarnpkg.com'
- name: install pnpm
run: npm i pnpm@latest -g
- run: pnpm install
- run: pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist