mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-18 12:13:24 +00:00
Created deploy workflow & made a dry run
This commit is contained in:
parent
3a17c3079e
commit
ada4579193
21
.github/workflows/deploy.yml
vendored
Normal file
21
.github/workflows/deploy.yml
vendored
Normal 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'
|
4
.github/workflows/unittests.yml
vendored
4
.github/workflows/unittests.yml
vendored
@ -1,8 +1,8 @@
|
||||
name: Unit Testing Action
|
||||
name: Unit Testing
|
||||
|
||||
on: [push]
|
||||
jobs:
|
||||
unittest:
|
||||
unittests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user