evcc-io/.github/workflows/website.yml
Michael Geers 4626972952
Potential fix for code scanning alert no. 21: Workflow does not contain permissions (#23796)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-09-23 17:34:34 +00:00

39 lines
926 B
YAML

name: Deploy data to website
permissions:
contents: read
on:
release:
types: [created]
workflow_dispatch:
jobs:
brandupdate:
name: Deploy data to website
runs-on: depot-ubuntu-24.04-arm
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
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()