From 16a48c1487a146d1f8bdcf8fa603de93118d7f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B2=AB=E8=8A=B1=E7=81=ABzzz=F0=9F=8C=99?= Date: Wed, 2 Oct 2024 18:37:06 +0800 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1e37513..73965bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -244,6 +244,15 @@ jobs: ./dist/nyalcf_cli-macos-arm64 ./dist/nyalcf_cli-macos-x64 + upload-apt-resources: + name: upload-apt-resources + runs-on: ubuntu-latest + needs: + - windows + - linux + - macos + + steps: - name: Update APT Source uses: wlixcc/SFTP-Deploy-Action@v1.0 with: @@ -252,6 +261,5 @@ jobs: ssh_private_key: ${{ secrets.SSH_PASSWORD }} local_path: './dist/${{ env.NYA_VERSION }}/nyalcf-${{ env.NYA_VERSION }}-linux.deb' remote_path: '/root/aptly/' - - name: Run Remote Shell - run: |- - ssh root@${{ secrets.SERVER_IP }} '/root/aptly/publish.sh' + run: | + ssh root@${{ secrets.SERVER_IP }} '/root/aptly/publish.sh' \ No newline at end of file