Deploy release and nightly doc templates separately (#12443)
* Deploy release and nightly doc templates seperately * Update commit message
This commit is contained in:
parent
2e148e2123
commit
974cc85b6c
2 changed files with 8 additions and 8 deletions
11
.github/workflows/documentation.yml
vendored
11
.github/workflows/documentation.yml
vendored
|
|
@ -4,9 +4,10 @@ env:
|
|||
GO_VERSION: ^1.22
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths: ["templates/**"]
|
||||
schedule:
|
||||
- cron: "0 2 * * *" # same time as nightly is triggered
|
||||
release:
|
||||
types: [created]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
@ -32,7 +33,7 @@ jobs:
|
|||
publish_dir: ./templates/docs
|
||||
external_repository: evcc-io/docs
|
||||
publish_branch: main
|
||||
destination_dir: templates
|
||||
destination_dir: ${{ github.event_name == 'release' && 'templates/release' || github.event_name == 'schedule' && 'templates/nightly' || 'templates/unknown_trigger' }}
|
||||
allow_empty_commit: false
|
||||
commit_message: Templates update
|
||||
commit_message: ${{ github.event_name == 'release' && 'Templates update for release' || github.event_name == 'schedule' && 'Templates update for nightly' || 'Templates update unknown trigger' }}
|
||||
if: ${{ success() }}
|
||||
|
|
|
|||
5
.github/workflows/website.yml
vendored
5
.github/workflows/website.yml
vendored
|
|
@ -4,9 +4,8 @@ env:
|
|||
GO_VERSION: ^1.22
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths: ["templates/**"]
|
||||
release:
|
||||
types: [created]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue