148d59a3ac
Some checks failed
Publish to docs.datacontroller.io / Deploy docs (push) Failing after 8s
34 lines
1014 B
YAML
34 lines
1014 B
YAML
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
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
env:
|
|
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
|
|
RUNNER_TOOL_CACHE: /opt/hostedtoolcache
|
|
|
|
- name: build site
|
|
run: python -m pip install mkdocs
|
|
python -m pip install mkdocs-material
|
|
python -m pip install fontawesome_markdown
|
|
python -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/* /
|