evcc-io/.github/workflows/documentation.yml
dependabot[bot] 9566923413
chore: bump actions/checkout from 3 to 4 (#10128)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2023-10-01 10:15:03 +02:00

38 lines
838 B
YAML

name: Deploy updated templates
env:
GO_VERSION: ^1.21
on:
push:
branches: [master]
paths: ["templates/**"]
workflow_dispatch:
jobs:
docupdate:
name: Deploy updated templates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Build docs
run: make install docs
- name: Deploy to docs repo
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./templates/docs
external_repository: evcc-io/docs
publish_branch: main
destination_dir: templates
allow_empty_commit: false
commit_message: Templates update
if: ${{ success() }}