1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update main.yml

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-09-15 18:16:02 +02:00 committed by GitHub
parent 37a091c9bb
commit 1b58d5c6f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ jobs:
with:
name: ${{ matrix.OMR_TARGET }}
path: /home/runner/work/omr/${{ matrix.OMR_TARGET }}/source/bin
- if: steps.branch_name.outputs.SOURCE_BRANCH == '' && secrets.PRIVATE_KEY != ''
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
name: Deploy - Create directory
uses: fifsky/ssh-action@master
env:
@ -82,7 +82,7 @@ jobs:
user: deploy
port: ${{ secrets.OMR_DEPLOY_PORT }}
key: ${{ secrets.PRIVATE_KEY }}
- if: steps.branch_name.outputs.SOURCE_BRANCH != '' && secrets.PRIVATE_KEY != ''
- if: steps.branch_name.outputs.SOURCE_BRANCH != ''
name: Deploy - Create directory
uses: fifsky/ssh-action@master
env:
@ -96,7 +96,7 @@ jobs:
user: deploy
port: ${{ secrets.OMR_DEPLOY_PORT }}
key: ${{ secrets.PRIVATE_KEY }}
- if: steps.branch_name.outputs.SOURCE_BRANCH == '' && secrets.PRIVATE_KEY != ''
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
name: Deploy - Upload via rsync
uses: up9cloud/action-rsync@master
env:
@ -111,7 +111,7 @@ jobs:
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
GITHUB_WORKSPACE: ${{ steps.branch_name.outputs.WORKSPACE }}
- if: steps.branch_name.outputs.SOURCE_BRANCH != '' && secrets.PRIVATE_KEY != ''
- if: steps.branch_name.outputs.SOURCE_BRANCH != ''
name: Deploy - Upload via rsync
uses: up9cloud/action-rsync@master
env: