Skip to content

ci: fix needs syntax #11

ci: fix needs syntax

ci: fix needs syntax #11

Workflow file for this run

name: Documentation
on:
push:
branches: [ master ]
permissions:
contents: read
id-token: write
pages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4 # https://github.com/actions/checkout
- name: Ruby setup
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build Jekyll documentation
id: build-jekyll
run: bundle exec jekyll build
- name: Build YARD documentation # must be after jekyll as jekyll wipe the destination folder before building
id: build-yard
run: bundle exec yard doc
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3 # https://github.com/actions/upload-pages-artifact
with:
path: output/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- build-yard

Check failure on line 41 in .github/workflows/documentation.yml

View workflow run for this annotation

GitHub Actions / Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/documentation.yml (Line: 41, Col: 9): Job 'deploy' depends on unknown job 'build-yard'. .github/workflows/documentation.yml (Line: 42, Col: 9): Job 'deploy' depends on unknown job 'build-jekyll'.
- build-jekyll
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # https://github.com/actions/deploy-pages