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 2828
2929 if : ${{ !contains(github.event.head_commit.message, '#nodev') }}
3030
31- permissions :
32- contents : read
33-
3431 steps :
3532 - name : " Checkout"
3633 uses : actions/checkout@v5
@@ -68,24 +65,11 @@ jobs:
6865 timeout-minutes : 5
6966 needs : build
7067
71- permissions :
72- pages : write
73- id-token : write
74-
7568 environment :
7669 name : dev
7770 url : https://dev-static.cssnr.com/
7871
7972 steps :
80- - name : " Debug Variables"
81- continue-on-error : true
82- run : |
83- echo "env.SSH_HOST: ${{ env.SSH_HOST }}"
84- echo "env.SSH_PORT: ${{ env.SSH_PORT }}"
85- echo "env.SSH_USER: ${{ env.SSH_USER }}"
86- echo "env.SSH_PASS: ${{ env.SSH_PASS }}"
87- echo "env.SSH_DEST: ${{ env.SSH_DEST }}"
88-
8973 - name : " Download Artifact"
9074 uses : actions/download-artifact@v5
9175 with :
@@ -96,20 +80,19 @@ jobs:
9680 run : |
9781 tree .
9882
99- - name : " Setup SSH"
100- run : |
101- mkdir -p "${HOME}/.ssh"
102- chmod 0700 "${HOME}/.ssh"
103- ssh-keyscan -p "${{ env.SSH_PORT }}" -H "${{ env.SSH_HOST }}" \
104- | tee -a "${HOME}/.ssh/known_hosts"
105-
10683 - name : " No Robots"
10784 run : |
10885 cat <<EOF > robots.txt
10986 User-agent: *
11087 Disallow: /
11188 EOF
11289
90+ - name : " Setup SSH"
91+ run : |
92+ mkdir -p "${HOME}/.ssh" && chmod 0700 "${HOME}/.ssh"
93+ ssh-keyscan -p "${{ env.SSH_PORT }}" -H "${{ env.SSH_HOST }}" \
94+ | tee -a "${HOME}/.ssh/known_hosts"
95+
11396 - name : " Deploy Artifact"
11497 env :
11598 SSHPASS : ${{ env.SSH_PASS }}
You can’t perform that action at this time.
0 commit comments