Skip to content

added workflow event dispatcher #2

added workflow event dispatcher

added workflow event dispatcher #2

name: Publish Frontend
on:
push:
branches:
- 'main'
paths: 'Frontend/**'

Check failure on line 7 in .github/workflows/publish-frontend.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-frontend.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
workflow_dispatch:
jobs:
publish:
defaults:
run:
working-directory: Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "22"
- name: Build
run: |
npm ci --force
npm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
CLEAN: true