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:
parent
47c104ec61
commit
82ca66df68
1 changed files with 32 additions and 0 deletions
32
.github/workflows/documentation.yml
vendored
Normal file
32
.github/workflows/documentation.yml
vendored
Normal 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() }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue