Skip to content

fix workflow and deps #216

fix workflow and deps

fix workflow and deps #216

Workflow file for this run

name: Build and Deploy

Check failure on line 1 in .github/workflows/vuepress-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/vuepress-deploy.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: deploy-github-pages
on:
workflow_dispatch:
push:
branch: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
- name: Install dependencies
run: npm install
- name: Build website
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
name: dist
path: docs/.vuepress/dist
deploy-github-pages:
if: ${{ github.ref == 'refs/heads/main' }}
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
environment:
name: Production
url: ${{ steps.deployment.outputs.page_url }}