Created deploy workflow & made a dry run

This commit is contained in:
Théo DURR
2022-08-25 22:23:13 +02:00
parent 3a17c3079e
commit ada4579193
2 changed files with 23 additions and 2 deletions

21
.github/workflows/deploy.yml vendored Normal file
View File

@ -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'