build: added doc deletion

This commit is contained in:
psyko-gh
2024-08-25 16:37:13 +02:00
parent 5babda147b
commit 8ab9376f59

33
.github/workflows/delete-docs.yaml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Delete doc version
on:
workflow_dispatch:
inputs:
version:
description: 'The version to remove'
required: true
run-name: Deleting docs for ${{ inputs.version }}
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Install dependencies
run: |
pip install mkdocs-material
pip install mike
- run: mike delete --branch gh-pages --push ${{ inputs.version }}