Allay
Allay copied to clipboard
docs: use github pages instead of readthedocs
.github/workflows/gh-pages.yml
name: Publish docs via GitHub Pages
on:
push:
branches: [ "master" ]
paths:
- docs/**
- mkdocs.yml
jobs:
build:
name: Deploy Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Deploy Docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REQUIREMENTS: docs/requirements.txt
Try this 🥺 @smartcmd
You need to switch Settings -> Actions -> General -> Workflow permissions to Read and write permissions first.