docs.datacontroller.io/.gitea/workflows/publish.yml

32 lines
1.0 KiB
YAML
Raw Normal View History

2023-06-30 15:41:08 +00:00
name: Publish to docs.datacontroller.io
on:
push:
branches:
- main
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v2
- name: Setup Python
2023-07-24 17:24:45 +00:00
uses: actions/setup-python@v3
2023-07-24 17:27:45 +00:00
with:
python-version: '3.0.1' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
2023-06-30 15:41:08 +00:00
- name: build site
run: pip3 install mkdocs
pip3 install mkdocs-material
pip3 install fontawesome_markdown
python3 -m mkdocs build --clean
mkdir site/slides
npx @marp-team/marp-cli slides/innovation/innovation.md -o ./site/slides/innovation/index.html
npx @marp-team/marp-cli slides/if/if.md -o site/if.pdf --allow-local-files --html=true
- name: Deploy docs
run: surfer put --token ${{ secrets.SURFERKEY }} --server docs2.datacontroller.io site/* /