Skip to content

grant write perms in yml for doc deployment #1

grant write perms in yml for doc deployment

grant write perms in yml for doc deployment #1

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
tags: '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.11'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
run: julia --project=docs/ docs/make.jl
permissions:
contents: write # Required for authenticating with `GITHUB_TOKEN`
pull-requests: read # Required for `push_preview=true`
statuses: write # Optional, used to report documentation build statuses