semesterprojekt-bluetooth-p.../.github/workflows/docs-markdown.yml

34 lines
901 B
YAML

name: Build Documentation from Markdown
run-name: ${{ GITHUB.ACTOR }} is generating a Documentation from Markdown 🚀
on:
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/workflows/docs-markdown.yml"
- "docs/**"
jobs:
build_markdown_documentation:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate HTML from Markdown
uses: ldeluigi/markdown-docs@latest
with:
src: docs/
dst: ./gh-pages
title: Markdown Docs
language: de
icon: library
primary-color: indigo
secondary-color: indigo
hide-repository: false
- name: Deploy GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}