Skip to content

doc permissions

doc permissions #16

Workflow file for this run

name: Documentation

Check failure on line 1 in .github/workflows/Documentation.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Documentation.yml

Invalid workflow file

(Line: 14, Col: 9): Unexpected value '', (Line: 19, Col: 5): Unexpected value 'actions', (Line: 20, Col: 5): Unexpected value 'contents', (Line: 21, Col: 5): Unexpected value 'pull-requests', (Line: 22, Col: 5): Unexpected value 'statuses', (Line: 19, Col: 5): There's not enough info to determine what you meant. Add one of these properties: cancel-timeout-minutes, container, continue-on-error, defaults, env, environment, outputs, runs-on, secrets, services, snapshot, steps, timeout-minutes, uses, with, (Line: 23, Col: 12): Unexpected value 'ubuntu-latest', (Line: 25, Col: 5): A sequence was not expected
on:
push:
branches: [main]
tags: '*'
pull_request:
branches: [main]
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
build:
# These permissions are needed to:
# - Deploy the documentation: https://documenter.juliadocs.org/stable/man/hosting/#Permissions
# - Delete old caches: https://github.com/julia-actions/cache#usage
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: "1"
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}