File tree Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Original file line number Diff line number Diff line change 2929
3030 if : ${{ !contains(github.event.head_commit.message, '#nodev') }}
3131
32- permissions :
33- contents : read
34-
3532 steps :
3633 - name : " Checkout"
3734 uses : actions/checkout@v5
@@ -69,24 +66,11 @@ jobs:
6966 timeout-minutes : 5
7067 needs : build
7168
72- permissions :
73- pages : write
74- id-token : write
75-
7669 environment :
7770 name : dev
7871 url : https://dev-static.cssnr.com/
7972
8073 steps :
81- - name : " Debug Variables"
82- continue-on-error : true
83- run : |
84- echo "env.SSH_HOST: ${{ env.SSH_HOST }}"
85- echo "env.SSH_PORT: ${{ env.SSH_PORT }}"
86- echo "env.SSH_USER: ${{ env.SSH_USER }}"
87- echo "env.SSH_PASS: ${{ env.SSH_PASS }}"
88- echo "env.SSH_DEST: ${{ env.SSH_DEST }}"
89-
9074 - name : " Download Artifact"
9175 uses : actions/download-artifact@v5
9276 with :
@@ -97,20 +81,19 @@ jobs:
9781 run : |
9882 tree .
9983
100- - name : " Setup SSH"
101- run : |
102- mkdir -p "${HOME}/.ssh"
103- chmod 0700 "${HOME}/.ssh"
104- ssh-keyscan -p "${{ env.SSH_PORT }}" -H "${{ env.SSH_HOST }}" \
105- | tee -a "${HOME}/.ssh/known_hosts"
106-
10784 - name : " No Robots"
10885 run : |
10986 cat <<EOF > robots.txt
11087 User-agent: *
11188 Disallow: /
11289 EOF
11390
91+ - name : " Setup SSH"
92+ run : |
93+ mkdir -p "${HOME}/.ssh" && chmod 0700 "${HOME}/.ssh"
94+ ssh-keyscan -p "${{ env.SSH_PORT }}" -H "${{ env.SSH_HOST }}" \
95+ | tee -a "${HOME}/.ssh/known_hosts"
96+
11497 - name : " Deploy Artifact"
11598 env :
11699 SSHPASS : ${{ env.SSH_PASS }}
You can’t perform that action at this time.
0 commit comments