From ff4c81d47c7dbcd92e41ca85e932e75773ca2435 Mon Sep 17 00:00:00 2001 From: Benjamin Degenhart Date: Thu, 25 Apr 2024 14:28:17 +0200 Subject: [PATCH] Trigger the webapp re-deployment with each push --- .github/workflows/pipeline.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 367a256..21d6c9e 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -1,4 +1,4 @@ -name: build zip with latest commit hash +name: build archive.zip and trigger webapp deployment on: push: branches: @@ -30,3 +30,13 @@ jobs: git commit -m "Upload latest zip archive" git branch -M zip-archive git push -fu origin zip-archive + + dispatch: + runs-on: ubuntu-latest + steps: + - name: Dispatch event to trigger webapp deployment + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + repository: Citizen-Knowledge-Graph/foerderfunke-webapp + event-type: external-webapp-deployment-trigger