diff --git a/.github/workflows/compile_development.yml b/.github/workflows/compile_development.yml index 047bc33d..b064e3ca 100644 --- a/.github/workflows/compile_development.yml +++ b/.github/workflows/compile_development.yml @@ -78,11 +78,12 @@ jobs: src/install.html - name: Deploy + working-directory: src/firmware uses: nogsantos/scp-deploy@master with: - src: src/firmware/ + src: src/firmware/* host: ${{ secrets.FW_SSH_HOST }} - remote: ${{ secrets.FW_SSH_DIR }}/dev + remote: ${{ secrets.FW_SSH_DIR }}/dev/${{ steps.rename-binary-files.outputs.name }}/ port: ${{ secrets.FW_SSH_PORT }} user: ${{ secrets.FW_SSH_USER }} key: ${{ secrets.FW_SSH_KEY }} diff --git a/.github/workflows/compile_release.yml b/.github/workflows/compile_release.yml index a773e574..ec47e2b7 100644 --- a/.github/workflows/compile_release.yml +++ b/.github/workflows/compile_release.yml @@ -93,3 +93,13 @@ jobs: asset_path: ./${{ steps.rename-binary-files.outputs.name }}.zip asset_name: ${{ steps.rename-binary-files.outputs.name }}.zip asset_content_type: application/zip + + - name: Deploy + uses: nogsantos/scp-deploy@master + with: + src: src/firmware/* + host: ${{ secrets.FW_SSH_HOST }} + remote: ${{ secrets.FW_SSH_DIR }}/release/${{ steps.rename-binary-files.outputs.name }}/ + port: ${{ secrets.FW_SSH_PORT }} + user: ${{ secrets.FW_SSH_USER }} + key: ${{ secrets.FW_SSH_KEY }}