From f22c1aeae326d39613d6d315f1509f901d795520 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Tue, 6 May 2025 13:07:56 +0800 Subject: [PATCH] =?UTF-8?q?test(ci):=20=E8=A1=A5=E5=85=85=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ssh-test.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ssh-test.yml b/.github/workflows/ssh-test.yml index f0ecf68..98f2df6 100644 --- a/.github/workflows/ssh-test.yml +++ b/.github/workflows/ssh-test.yml @@ -23,31 +23,18 @@ name: ssh-test on: workflow_dispatch: -permissions: - contents: write - actions: write - jobs: - pre_check: - name: Pre Checks - runs-on: ubuntu-latest - steps: - - name: Repo Check - id: repo_check - run: | - if [[ "$GITHUB_REPOSITORY" != "DLmaster361/AUTO_MAA" ]]; then - echo "When forking this repository to make your own builds, you have to adjust this check." - exit 1 - fi - exit 0 publish_release: name: Publish release - needs: pre_check - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 - name: Setup SSH Key run: | mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa ssh-keyscan -p ${{ secrets.SSH_PORT }} -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts + - name: Upload Release to Server + run: scp -P ${{ secrets.SSH_PORT }} -r artifacts/* ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/mnt/data/AUTO_MAA/ \ No newline at end of file