Skip to content

Update and rename main.yml to action.yaml #1

Update and rename main.yml to action.yaml

Update and rename main.yml to action.yaml #1

Workflow file for this run

name: Deployment
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
runs:

Check failure on line 9 in .github/workflows/action.yaml

View workflow run for this annotation

GitHub Actions / Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/action.yaml (Line: 9, Col: 1): Unexpected value 'runs'
using: node20
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm clean-install
- name: Pre-Deploy
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build