diff --git a/.github/workflows/build-gui.yml b/.github/workflows/build-gui.yml index 6782349..5c33452 100644 --- a/.github/workflows/build-gui.yml +++ b/.github/workflows/build-gui.yml @@ -9,6 +9,7 @@ on: push: branches: - dev + - 'dev-*' jobs: windows: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 117a94a..fa49da3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -243,3 +243,14 @@ jobs: ./dist/nyalcf_cli-linux-x64 ./dist/nyalcf_cli-macos-arm64 ./dist/nyalcf_cli-macos-x64 + + - name: Update APT Source + uses: wlixcc/SFTP-Deploy-Action@v1.0 + with: + username: 'root' + server: '${{ secrets.SERVER_IP }}' + ssh_private_key: ${{ secrets.SSH_PASSWORD }} + local_path: './dist/${{ env.NYA_VERSION }}/nyalcf-${{ env.NYA_VERSION }}-linux.deb' + remote_path: '/root/aptly/' + run: | + ssh root@${{ secrets.SERVER_IP }} '/root/aptly/publish.sh' \ No newline at end of file