|
|
@@ -17,6 +17,13 @@ jobs:
|
|
|
build-h5-production:
|
|
|
runs-on: [self-hosted,ARM64]
|
|
|
steps:
|
|
|
+ - name: Test SSH key
|
|
|
+ run: |
|
|
|
+ echo "${{ secrets.DEPLOY_KEY }}" > /tmp/test_key
|
|
|
+ chmod 600 /tmp/test_key
|
|
|
+ ssh -i /tmp/test_key -o StrictHostKeyChecking=no deploy@${{ secrets.DEPLOY_HOST }} "echo 'SSH key works!'"
|
|
|
+ rm /tmp/test_key
|
|
|
+
|
|
|
- name: 检出代码
|
|
|
uses: actions/checkout@v4
|
|
|
|