Skip to content

break when meet error #17

break when meet error

break when meet error #17

name: Build and Deploy
on:
push:
branches:
- main # Set this to your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20.8.0" # Specify your Node.js version
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.CI_TOKEN }}
publish_dir: ./dist # Replace with your build directory