Skip to content

#TR-48 - adjust workflow permissions #3

#TR-48 - adjust workflow permissions

#TR-48 - adjust workflow permissions #3

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build MkDocs site
run: mkdocs build
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}