From 974cc85b6cc0bd5b3a31b10d3092307892785659 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sat, 24 Feb 2024 17:08:44 +0100 Subject: [PATCH] Deploy release and nightly doc templates separately (#12443) * Deploy release and nightly doc templates seperately * Update commit message --- .github/workflows/documentation.yml | 11 ++++++----- .github/workflows/website.yml | 5 ++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ecfa74153..97d81fc69 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -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() }} diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index aee95ecf1..da93ba98b 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -4,9 +4,8 @@ env: GO_VERSION: ^1.22 on: - push: - branches: [master] - paths: ["templates/**"] + release: + types: [created] workflow_dispatch: jobs: