Skip to content

Workflows updated again #2

Workflows updated again

Workflows updated again #2

Workflow file for this run

name: Documentation
on:
push:
branches:
- main # or your default branch
jobs:
setup-environment:
runs-on: ubuntu-latest
uses: ./.github/workflows/setup_env.yml

Check failure on line 11 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: 11, Col: 5): Unexpected value 'uses'
build-documentation:
runs-on: ubuntu-latest
needs: setup-environment
steps:
- name: Generate Documentation
run: |
rm -r docs/
pdoc --force --template-dir templates -o docs --html mimir
mv docs/mimir/* docs/
rm -r docs/mimir
- name: Commit and Push Documentation
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Actions"
git add docs/
git commit -m "Update documentation" -a || exit 0 # Exit if nothing to commit
git push https://${{ secrets.MIMIR_PAT }}@github.com/${{ github.repository }}.git