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
a535bcc60c
commit
f183c39d31
1 changed files with 9 additions and 2 deletions
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
|
@ -52,6 +52,11 @@ jobs:
|
||||||
working-directory: ./openmptcprouter
|
working-directory: ./openmptcprouter
|
||||||
run: |
|
run: |
|
||||||
make IGNORE_ERRORS=m -C $OMR_TARGET/source target/install -j$(nproc)
|
make IGNORE_ERRORS=m -C $OMR_TARGET/source target/install -j$(nproc)
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ${{ env.OMR_TARGET }}
|
||||||
|
path: ./openmptcprouter/${{ env.OMR_TARGET }}/source/bin
|
||||||
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
|
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
|
||||||
name: Deploy - Create directory
|
name: Deploy - Create directory
|
||||||
uses: fifsky/ssh-action@master
|
uses: fifsky/ssh-action@master
|
||||||
|
@ -82,7 +87,7 @@ jobs:
|
||||||
key: ${{ secrets.PRIVATE_KEY }}
|
key: ${{ secrets.PRIVATE_KEY }}
|
||||||
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
|
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
|
||||||
name: Deploy - Upload via rsync
|
name: Deploy - Upload via rsync
|
||||||
uses: frankfoerster/github-actions-rsync@master
|
uses: galexrt/rsync-deployments@master
|
||||||
with:
|
with:
|
||||||
RSYNC_OPTIONS: -av --delete-after
|
RSYNC_OPTIONS: -av --delete-after
|
||||||
RSYNC_TARGET: deploy/release/${{env.SOURCE_TAG}}/${{env.OMR_TARGET}}
|
RSYNC_TARGET: deploy/release/${{env.SOURCE_TAG}}/${{env.OMR_TARGET}}
|
||||||
|
@ -91,12 +96,13 @@ jobs:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
||||||
SSH_USERNAME: deploy
|
SSH_USERNAME: deploy
|
||||||
SSH_HOSTNAME: ${{ secrets.OMR_DEPLOY_HOST }}
|
SSH_HOSTNAME: ${{ secrets.OMR_DEPLOY_HOST }}
|
||||||
|
SSH_PORT: ${{ secrets.OMR_DEPLOY_PORT }}
|
||||||
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
||||||
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
|
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
|
||||||
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
|
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
|
||||||
- if: steps.branch_name.outputs.SOURCE_BRANCH != ''
|
- if: steps.branch_name.outputs.SOURCE_BRANCH != ''
|
||||||
name: Deploy - Upload via rsync
|
name: Deploy - Upload via rsync
|
||||||
uses: frankfoerster/github-actions-rsync@master
|
uses: galexrt/rsync-deployments@master
|
||||||
with:
|
with:
|
||||||
RSYNC_OPTIONS: -av --delete-after
|
RSYNC_OPTIONS: -av --delete-after
|
||||||
RSYNC_TARGET: deploy/${{env.SOURCE_BRANCH}}/${{env.OMR_KERNEL}}/${{env.OMR_TARGET}}
|
RSYNC_TARGET: deploy/${{env.SOURCE_BRANCH}}/${{env.OMR_KERNEL}}/${{env.OMR_TARGET}}
|
||||||
|
@ -105,6 +111,7 @@ jobs:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
||||||
SSH_USERNAME: deploy
|
SSH_USERNAME: deploy
|
||||||
SSH_HOSTNAME: ${{ secrets.OMR_DEPLOY_HOST }}
|
SSH_HOSTNAME: ${{ secrets.OMR_DEPLOY_HOST }}
|
||||||
|
SSH_PORT: ${{ secrets.OMR_DEPLOY_PORT }}
|
||||||
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
||||||
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
|
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
|
||||||
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
|
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue