From e2a73d30f7d7ab3847e95932389d2b3ff148d227 Mon Sep 17 00:00:00 2001 From: Allan Date: Fri, 30 Jun 2023 16:41:08 +0100 Subject: [PATCH] fix: first stab at gitea action --- .gitea/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/publish.yml | 28 ---------------------------- slides/{ => if}/if.md | 0 3 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 .gitea/workflows/publish.yml delete mode 100644 .github/workflows/publish.yml rename slides/{ => if}/if.md (100%) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..cc771e3 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,28 @@ +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@v1 + + - 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/* / diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 3b28b38..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Publish docs via GitHub Pages -on: - push: - branches: - - master - -jobs: - build: - name: Deploy docs - runs-on: ubuntu-latest - steps: - - - name: Checkout master - uses: actions/checkout@v2 - - - name: IF PDF - run: npx @marp-team/marp-cli slides/if.md -o theme/if.pdf --allow-local-files --html=true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Setup Python - uses: actions/setup-python@v1 - - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@1.16 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CUSTOM_DOMAIN: docs.datacontroller.io diff --git a/slides/if.md b/slides/if/if.md similarity index 100% rename from slides/if.md rename to slides/if/if.md