Skip to content

Update action to deploy to GitHub pages #1363

Update action to deploy to GitHub pages

Update action to deploy to GitHub pages #1363

Workflow file for this run

name: Build and deploy docs
on:
push:
branches: [ main ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
docs-directory: /home/runner/work/kokkos-core-wiki/kokkos-core-wiki/docs
url: ${{ steps.deployment.outputs.page_url }}

Check failure on line 13 in .github/workflows/deploy_docs.yml

View workflow run for this annotation

GitHub Actions / Build and deploy docs

Invalid workflow file

The workflow is not valid. .github/workflows/deploy_docs.yml (Line: 13, Col: 12): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.deployment.outputs.page_url
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: '3.10'
- run: pip install -r build_requirements.txt
- name: Build documentation
working-directory: ${{ env.docs-directory }}
run: |
make html
- name: Updload documentation as artifact
id: deployment
uses: actions/[email protected]
with:
path: ${{ env.docs-directory }}/generated_docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]