Skip to content

Update Node.js version in deploy workflow #13

Update Node.js version in deploy workflow

Update Node.js version in deploy workflow #13

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: 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
github_token: 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

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

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 31, Col: 11): 'github_token' is already defined
publish_dir: ./build