File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed
Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change 4141 name : StackDeobfuscator-Web-Artifacts
4242 path : build/libs/StackDeobfuscatorWeb-*
4343 if-no-files-found : error
44- deploy_web :
45- needs : build
46- strategy :
47- matrix :
48- os : [ ubuntu-24.04 ]
49- runs-on : ${{ matrix.os }}
50- if : ${{ github.ref == 'refs/heads/master' }}
51- steps :
52- - name : Download web artifact
53- uses : actions/download-artifact@v5
54- with :
55- name : StackDeobfuscator-Web-Artifacts
56- - name : Extract web artifact file name
57- id : name_finder
58- run : |
59- echo -n 'file_name=' >> "$GITHUB_OUTPUT" && ls . | grep all.jar >> "$GITHUB_OUTPUT"
60- - name : Deploy web
61- uses : burnett01/rsync-deployments@7.1.0
62- env :
63- INPUT_CENSOR_HOSTNAME : " ${{ secrets.DEPLOY_SERVER_CENSOR }}"
64- with :
65- switches : -av --delete
66- path : " ${{ steps.name_finder.outputs.file_name }}"
67- remote_user : " ${{ secrets.DEPLOY_USER }}"
68- remote_host : " ${{ secrets.DEPLOY_SERVER }}"
69- remote_key : " ${{ secrets.DEPLOY_PRIVATE_KEY }}"
70- remote_path : " ${{ secrets.DEPLOY_PATH }}"
71- - name : Trigger deploy hook
72- env :
73- INPUT_REMOTE_KEY : " ${{ secrets.DEPLOY_PRIVATE_KEY }}"
74- INPUT_REMOTE_USER : " ${{ secrets.DEPLOY_USER }}"
75- INPUT_REMOTE_HOST : " ${{ secrets.DEPLOY_SERVER }}"
76- INPUT_REMOTE_TRIGGER_SCRIPT : " ${{ secrets.DEPLOY_SCRIPT }}"
77- INPUT_PATH : " ${{ steps.name_finder.outputs.file_name }}"
78- run : |
79- echo "$INPUT_REMOTE_KEY" > privkey
80- chmod 700 privkey
81- ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -i privkey -- "$INPUT_REMOTE_USER"@"$INPUT_REMOTE_HOST" "$INPUT_REMOTE_TRIGGER_SCRIPT" "$INPUT_PATH"
82- rm -f privkey
You can’t perform that action at this time.
0 commit comments