Skip to content

Add deploy workflow, ignore docs directory, and add slidev package.json #1

Add deploy workflow, ignore docs directory, and add slidev package.json

Add deploy workflow, ignore docs directory, and add slidev package.json #1

Workflow file for this run

name: Deploy pages
on: push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run:
cd slidev
npm install
- name: Build
run:
cd slidev
npm run build
- name: Deploy pages
uses: crazy-max/ghaction-github-pages@v2
with:
build_dir: slidev/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}