Skip to content

Commit

Permalink
Deploy release and nightly doc templates separately (#12443)
Browse files Browse the repository at this point in the history
* Deploy release and nightly doc templates seperately

* Update commit message
  • Loading branch information
naltatis committed Mar 26, 2024
1 parent a153a0e commit 5315903
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 changes: 2 additions & 3 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ env:
GO_VERSION: ^1.22

on:
push:
branches: [master]
paths: ["templates/**"]
release:
types: [created]
workflow_dispatch:

jobs:
Expand Down

0 comments on commit 5315903

Please sign in to comment.