Update publish-docs.yml

Add permissions.
Correct formatting.
This commit is contained in:
Nick Fedor 2025-02-03 22:24:23 -07:00
parent fdf4b3f4ea
commit 0ab8af1bad
No known key found for this signature in database
GPG key ID: A167CBEDE64D29CB

View file

@ -1,13 +1,17 @@
name: Publish Docs name: Publish Docs
on: on:
workflow_dispatch: { } workflow_dispatch: {}
workflow_run: workflow_run:
workflows: [ "Release (Production)" ] workflows: ["Release (Production)"]
branches: [ main ] branches: [main]
types: types:
- completed - completed
permissions:
contents: write
actions: read
jobs: jobs:
publish-docs: publish-docs:
name: Publish Docs name: Publish Docs
@ -26,8 +30,8 @@ jobs:
- name: Setup python - name: Setup python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: "3.10"
cache: 'pip' cache: "pip"
cache-dependency-path: | cache-dependency-path: |
docs-requirements.txt docs-requirements.txt
- name: Install mkdocs - name: Install mkdocs