From dad0a82fef3a916441e8f847b563b8a69e9b948c Mon Sep 17 00:00:00 2001 From: Olivier Patry Date: Wed, 2 Oct 2024 22:39:17 +0200 Subject: [PATCH] Automatically deploy website when pushing diff into website/** on main branch --- .github/workflows/build.yml | 4 ++-- .github/workflows/deploy-website.yml | 6 +++++- .github/workflows/play-store-publish.yml | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 917fc881..75fcd36e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,10 +3,10 @@ name: Build & Test on: push: branches: - - main + - main pull_request: branches: - - main + - main jobs: build: diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 4e8c7510..fcf34263 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -1,7 +1,11 @@ name: 🌎 Deploy Website on: - workflow_dispatch: + push: + branches: + - main + paths: + - 'website/**' permissions: contents: write diff --git a/.github/workflows/play-store-publish.yml b/.github/workflows/play-store-publish.yml index 04ebe972..efac1f6e 100644 --- a/.github/workflows/play-store-publish.yml +++ b/.github/workflows/play-store-publish.yml @@ -1,4 +1,5 @@ name: 🚀 Play Store publish + on: workflow_dispatch: inputs: