Skip to content

Skip preview job on forks #137

Skip preview job on forks

Skip preview job on forks #137

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [main]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest

Check failure on line 9 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
# Only run this job if the repository is NOT a fork
if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install
run: |
npm ci
- name: Build
run: |
npm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: out # The folder the action should deploy.
clean-exclude: "preview/"