Sh runner (#295)

* set self-hosted runner
* set GH runner for pylint
* fix upload to storage
This commit is contained in:
rusdacent 2021-01-07 10:32:19 +03:00 committed by GitHub
parent b2b295c3f9
commit b7210eaf0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,21 +76,23 @@ jobs:
needs: build
runs-on: [self-hosted]
steps:
- name: Create directory for artifacts
run: mkdir artifacts
- name: Get bootloader
uses: actions/download-artifact@v2
with:
name: bootloader_f4
path: bootloader
path: artifacts/bootloader
- name: Get firmware
uses: actions/download-artifact@v2
with:
name: firmware_f4
path: firmware
path: artifacts/firmware
- name: Upload bootloader
uses: burnett01/rsync-deployments@4.1
with:
switches: -avzp --delete
path: bootloader
path: artifacts/bootloader
remote_path: "${{ secrets.RSYNC_DEPLOY_BASE_PATH }}${GITHUB_REF##*/}/"
remote_host: ${{ secrets.RSYNC_DEPLOY_HOST }}
remote_port: ${{ secrets.RSYNC_DEPLOY_PORT }}
@ -100,7 +102,7 @@ jobs:
uses: burnett01/rsync-deployments@4.1
with:
switches: -avzp --delete
path: firmware
path: artifacts/firmware
remote_path: "${{ secrets.RSYNC_DEPLOY_BASE_PATH }}${GITHUB_REF##*/}/"
remote_host: ${{ secrets.RSYNC_DEPLOY_HOST }}
remote_port: ${{ secrets.RSYNC_DEPLOY_PORT }}