Autoupdate Supported Brands on Website (#3133)
This commit is contained in:
parent
e3a598add8
commit
d356298d53
60 changed files with 307 additions and 117 deletions
47
.github/workflows/website.yml
vendored
Normal file
47
.github/workflows/website.yml
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
name: Deploy data to website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths: "templates/evcc.io/**"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
brandupdate:
|
||||
name: Deploy data to website
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ^1.18
|
||||
id: go
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install tools
|
||||
run: make install
|
||||
|
||||
- name: Build docs
|
||||
run: make docs
|
||||
|
||||
- name: Clean git
|
||||
run: |
|
||||
git checkout go.*
|
||||
rm -rf flags buildflags
|
||||
|
||||
- name: Deploy to evcc.io repo
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
personal_token: ${{ secrets.GH_REPO }}
|
||||
publish_dir: ./templates/evcc.io/
|
||||
external_repository: evcc-io/evcc.io
|
||||
publish_branch: main
|
||||
destination_dir: data
|
||||
allow_empty_commit: false
|
||||
commit_message: Brand data update
|
||||
if: ${{ success() }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue