-
-
Notifications
You must be signed in to change notification settings - Fork 704
40 lines (32 loc) · 923 Bytes
/
website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy data to website
env:
GO_VERSION: ^1.22
on:
release:
types: [created]
workflow_dispatch:
jobs:
brandupdate:
name: Deploy data to website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Build docs
run: make install docs
- name: Remove .gitignore to allow brands.json to be committed
run: rm templates/evcc.io/.gitignore
- name: Deploy to evcc.io repo
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GH_TOKEN }}
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()