Skip to content

modified build_and_deploy #5

modified build_and_deploy

modified build_and_deploy #5

name: Build & Deploy Documentation
on:
push:
branches: [development]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-ci-workflow
cancel-in-progress: true
permissions:
contents: write # Required to read repository contents
pages: write # Required to deploy GitHub Pages
id-token: write # Required for deploying GitHub Pages
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r Docs/requirements.txt
- name: Build documentation
run: |
cd Docs
make clean
make html
touch build/html/.nojekyll
- name: List modified files
run: git status
- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: Docs/build/html
deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
steps:
- name: deploy to gh-pages
uses: actions/deploy-pages@v4
artifact_name: github-pages

Check failure on line 61 in .github/workflows/build_and_deploy.yml

View workflow run for this annotation

GitHub Actions / Build & Deploy Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/build_and_deploy.yml (Line: 61, Col: 9): Unexpected value 'artifact_name'
id: deployment
with:
token: ${{ secrets.GITHUB_TOKEN }}