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

54 lines
1.5 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:
2023-07-24 22:47:21 +00:00
- uses: actions/setup-node@v3
with:
node-version: 18
2023-06-30 15:41:08 +00:00
- name: Checkout master
uses: actions/checkout@v2
- name: Setup Python
2023-07-24 17:34:27 +00:00
uses: actions/setup-python@v4
2023-07-24 17:30:32 +00:00
env:
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
RUNNER_TOOL_CACHE: /opt/hostedtoolcache
2023-07-24 17:47:59 +00:00
- name: Install pip3
run: |
apt-get update
2023-07-24 17:48:29 +00:00
apt-get install python3-pip -y
2023-06-30 15:41:08 +00:00
2023-07-24 22:35:42 +00:00
- name: Install Chrome
run: |
apt-get update
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install -y ./google-chrome*.deb;
export CHROME_BIN=/usr/bin/google-chrome
2023-07-24 22:47:21 +00:00
- name: Install Surfer
run: |
npm -g install cloudron-surfer
2023-06-30 15:41:08 +00:00
- name: build site
2023-07-24 17:47:12 +00:00
run: |
pip3 install mkdocs
pip3 install mkdocs-material
pip3 install fontawesome_markdown
2023-07-24 22:32:48 +00:00
pip3 install mkdocs-redirects
2023-07-24 17:44:25 +00:00
python3 -m mkdocs build --clean
2023-06-30 15:41:08 +00:00
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
2023-07-25 07:42:41 +00:00
run: surfer put --token ${{ secrets.SURFERKEY }} --server docs.datacontroller.io site/* /