From cd1cb186beecc2f527cba275eec08712d6829a5c Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Tue, 23 Feb 2021 08:24:19 +0000 Subject: [PATCH] deploy docs with gh actions --- .github/workflows/deploy-docs.yml | 22 ++++++++++++++++++++++ docs/deploy.sh | 14 -------------- 2 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/deploy-docs.yml delete mode 100755 docs/deploy.sh diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 00000000..eff03591 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,22 @@ +name: Deploy Docs +on: + push: + branches: + - develop + +defaults: + run: + working-directory: docs + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.x + - run: pip install --upgrade pip + - run: pip install --upgrade setuptools wheel + - run: pip install mkdocs mkdocs-material pymdown-extensions + - run: mkdocs gh-deploy --force diff --git a/docs/deploy.sh b/docs/deploy.sh deleted file mode 100755 index 2e8c6ebe..00000000 --- a/docs/deploy.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env sh - -set -e - -npm run build - -cd .vuepress/dist - -git init -git add -A -git commit -m 'deploy' - -git push -f git@github.com:wh1te909/tacticalrmm.git develop:gh-pages -cd - \ No newline at end of file