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:
parent
f183c39d31
commit
df865aed83
1 changed files with 16 additions and 18 deletions
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
|
@ -87,31 +87,29 @@ jobs:
|
|||
key: ${{ secrets.PRIVATE_KEY }}
|
||||
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
|
||||
name: Deploy - Upload via rsync
|
||||
uses: galexrt/rsync-deployments@master
|
||||
uses: burnett01/rsync-deployments@4.1
|
||||
with:
|
||||
RSYNC_OPTIONS: -av --delete-after
|
||||
RSYNC_TARGET: deploy/release/${{env.SOURCE_TAG}}/${{env.OMR_TARGET}}
|
||||
RSYNC_SOURCE: ./openmptcprouter/${{env.OMR_TARGET}}/source/bin/
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
||||
SSH_USERNAME: deploy
|
||||
SSH_HOSTNAME: ${{ secrets.OMR_DEPLOY_HOST }}
|
||||
SSH_PORT: ${{ secrets.OMR_DEPLOY_PORT }}
|
||||
switches: -av --delete-after
|
||||
remote_path: deploy/${{env.SOURCE_BRANCH}}/${{env.OMR_KERNEL}}/${{env.OMR_TARGET}}
|
||||
path: ./openmptcprouter/${{env.OMR_TARGET}}/source/bin/
|
||||
remote_key: ${{ secrets.PRIVATE_KEY }}
|
||||
remote_user: deploy
|
||||
remote_host: ${{ secrets.OMR_DEPLOY_HOST }}
|
||||
remote_port: ${{ secrets.OMR_DEPLOY_PORT }}
|
||||
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
||||
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
|
||||
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
|
||||
- if: steps.branch_name.outputs.SOURCE_BRANCH != ''
|
||||
name: Deploy - Upload via rsync
|
||||
uses: galexrt/rsync-deployments@master
|
||||
uses: burnett01/rsync-deployments@4.1
|
||||
with:
|
||||
RSYNC_OPTIONS: -av --delete-after
|
||||
RSYNC_TARGET: deploy/${{env.SOURCE_BRANCH}}/${{env.OMR_KERNEL}}/${{env.OMR_TARGET}}
|
||||
RSYNC_SOURCE: ./openmptcprouter/${{env.OMR_TARGET}}/source/bin/
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
||||
SSH_USERNAME: deploy
|
||||
SSH_HOSTNAME: ${{ secrets.OMR_DEPLOY_HOST }}
|
||||
SSH_PORT: ${{ secrets.OMR_DEPLOY_PORT }}
|
||||
switches: -av --delete-after
|
||||
remote_path: deploy/${{env.SOURCE_BRANCH}}/${{env.OMR_KERNEL}}/${{env.OMR_TARGET}}
|
||||
path: ./openmptcprouter/${{env.OMR_TARGET}}/source/bin/
|
||||
remote_key: ${{ secrets.PRIVATE_KEY }}
|
||||
remote_user: deploy
|
||||
remote_host: ${{ secrets.OMR_DEPLOY_HOST }}
|
||||
remote_port: ${{ secrets.OMR_DEPLOY_PORT }}
|
||||
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
||||
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
|
||||
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue