From ada4579193e8023f0644b0ba6d4105bfcf4872c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Thu, 25 Aug 2022 22:23:13 +0200 Subject: [PATCH] Created deploy workflow & made a dry run --- .github/workflows/deploy.yml | 21 +++++++++++++++++++++ .github/workflows/unittests.yml | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..8bc0cbdd --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,21 @@ +name: Deploy to production + +on: + workflow_run: + workflows: [Unit Testing] + types: [completed] + branches: + - master + +jobs: + on-success: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - run: echo 'The triggering workflow passed' + + on-failure: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'failure' }} + steps: + - run: echo 'The triggering workflow failed' \ No newline at end of file diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index d3dd3a6a..733fe07b 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -1,8 +1,8 @@ -name: Unit Testing Action +name: Unit Testing on: [push] jobs: - unittest: + unittests: runs-on: ubuntu-latest steps: