evcc-io/.github/workflows/website.yml
dependabot[bot] c248f90b5d
chore(deps): bump actions/setup-go from 4 to 5 (#11382)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 13:20:47 +01:00

38 lines
850 B
YAML

name: Deploy data to website
env:
GO_VERSION: ^1.21
on:
push:
branches: [master]
paths: ["templates/evcc.io/**"]
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: Deploy to evcc.io repo
uses: peaceiris/actions-gh-pages@v3
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() }}