Add action to deploy generated template docs (#2241)

This deploys the current content of `/templates/docs` to the `templates` folder in the docs repo
This commit is contained in:
Andreas Linde 2022-01-08 16:03:25 +01:00 • committed by GitHub
parent 47c104ec61
commit 82ca66df68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

32
.github/workflows/documentation.yml vendored Normal file
View file

@ -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() }}