Feature/reuse #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Mkdocs | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the develop branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
createdocu: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- | |
run: pip install mkdocs-material | |
- | |
run: | | |
ls -alh | |
find samples-*/ -name "*.md" | cpio -pd doc/ | |
find samples-*/ -name "*.png" | cpio -pd doc/ | |
find scripts/ -name "*.md" | cpio -pd doc/ | |
find scripts/ -name "*.png" | cpio -pd doc/ | |
mkdocs gh-deploy --force |