Skip to content

feat: add buttons to ruff rule embed (#68) #63

feat: add buttons to ruff rule embed (#68)

feat: add buttons to ruff rule embed (#68) #63

Workflow file for this run

name: Documentation Building
on:
release:
types: [published]
push:
branches:
- main
jobs:
docs:
permissions:
contents: write
runs-on: ubuntu-latest
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DISCORD_DEV_GUILD_ID: ${{ secrets.DISCORD_DEV_GUILD_ID }}
DISCORD_DEV_USER_ID: ${{ secrets.DISCORD_DEV_USER_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: pdm-project/setup-pdm@v3
name: Set up PDM
with:
python-version: "3.11"
allow-python-prereleases: true
cache: true
- name: Install dependencies
run: pdm install -G:docs
- name: Fetch gh pages
run: git fetch origin gh-pages --depth=1
- name: Build release docs
run: pdm run python tools/build_docs.py docs-build
if: github.event_name == 'release'
- name: Build dev docs
run: pdm run python tools/build_docs.py docs-build
if: github.event_name == 'push'
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs-build