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
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
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'

View File

@ -1,8 +1,8 @@
name: Unit Testing Action
name: Unit Testing
on: [push]
jobs:
unittest:
unittests:
runs-on: ubuntu-latest
steps: