Browse Source

github action update

pull/1116/head
lumapu 1 year ago
parent
commit
6d12fcc384
  1. 5
      .github/workflows/compile_development.yml
  2. 10
      .github/workflows/compile_release.yml

5
.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 }}

10
.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 }}

Loading…
Cancel
Save