From 82ca66df6802b52128cf7e06942a892a5a2d7ebb Mon Sep 17 00:00:00 2001 From: Andreas Linde <42185+DerAndereAndi@users.noreply.github.com> Date: Sat, 8 Jan 2022 16:03:25 +0100 Subject: [PATCH] Add action to deploy generated template docs (#2241) This deploys the current content of `/templates/docs` to the `templates` folder in the docs repo --- .github/workflows/documentation.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 000000000..fc7796805 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,32 @@ +name: Deploy updated templates + +on: + workflow_dispatch: + +jobs: + docupdate: + name: Deploy updated templates + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Clean git + run: | + git checkout go.* + rm -rf flags buildflags + + - name: Deploy to docs repo + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.GH_API_TOKEN }} + publish_dir: ./templates/docs + external_repository: evcc-io/docs + publish_branch: master + destination_dir: templates + allow_empty_commit: false + commit_message: Templates update + if: ${{ success() }}