Skip to content

chore: bump actions/checkout from 3.5.3 to 3.6.0 (#838) #40

chore: bump actions/checkout from 3.5.3 to 3.6.0 (#838)

chore: bump actions/checkout from 3.5.3 to 3.6.0 (#838) #40

Workflow file for this run

name: Generate docs website to GitHub Pages
on:
push:
branches:
- main
paths:
- '.github/workflows/deploy_docs.yaml'
- 'docs/**'
pull_request:
branches:
- main
paths:
- '.github/workflows/deploy_docs.yaml'
- 'docs/**'
permissions:
contents: read
jobs:
deploy:
name: Generate docs website to GitHub Pages
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: docs
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit
- name: Setup Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 16.x
- name: Get yarn cache
id: yarn-cache
run: echo "dir=$(yarn cache dir)" > $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-website-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-website-
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository == 'eraser-dev/eraser'
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
if: ${{ github.ref == 'refs/heads/main' }}

Check failure on line 60 in .github/workflows/deploy_docs.yaml

View workflow run for this annotation

GitHub Actions / Generate docs website to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy_docs.yaml (Line: 60, Col: 9): 'if' is already defined
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build
destination_dir: ./docs