mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-26 09:41:13 +00:00
Added some safety to deploy script
This commit is contained in:
parent
b3ad5c5df9
commit
863f9ff77e
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@ -4,11 +4,16 @@ concurrency: production
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
workflow_run:
|
||||
workflows: [Sith3 CI]
|
||||
types: [completed]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# Runs only if Unit tests are successful
|
||||
deployment:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{github.event.workflow_run.conclusion == 'success'}}
|
||||
environment: production
|
||||
timeout-minutes: 30
|
||||
|
||||
@ -29,6 +34,8 @@ jobs:
|
||||
username : ${{secrets.USER}}
|
||||
key: ${{secrets.KEY}}
|
||||
|
||||
script_stop: true
|
||||
|
||||
# See https://github.com/ae-utbm/sith3/wiki/GitHub-Actions#deployment-action
|
||||
script: |
|
||||
export PATH="$HOME/.poetry/bin:$PATH"
|
||||
|
2
.github/workflows/unittests.yml
vendored
2
.github/workflows/unittests.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Unit Testing
|
||||
name: Sith3 CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
Loading…
Reference in New Issue
Block a user