Skip to content

Fix GH action

Fix GH action #4

Workflow file for this run

name: deploy to gh pages
on:
push:
branches:
- docs
pull_request:
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: 'latest'
- run: mdbook build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ./book
- name: Deploy to GitHub Pages
id: deployment

Check failure on line 31 in .github/workflows/gh-pages.yml

View workflow run for this annotation

GitHub Actions / deploy to gh pages

Invalid workflow file

The workflow is not valid. .github/workflows/gh-pages.yml (Line: 31, Col: 13): The identifier 'deployment' may not be used more than once within the same scope.
uses: actions/deploy-pages@v4