Skip to content

Create nextjs.yml

Create nextjs.yml #4

Workflow file for this run

name: Deploy Next.js App to GitHub Pages
on:

Check failure on line 3 in .github/workflows/nextjs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/nextjs.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- run: npm run build
- run: npm run export
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out