secrets vergeten

This commit is contained in:
Mans Ziesel 2024-04-27 20:26:02 +02:00
parent b8bbdcd4f6
commit ce1d74239a

View File

@ -54,28 +54,16 @@ jobs:
target: /tmp/ target: /tmp/
overwrite: true overwrite: true
- name: Test
run: echo "rm -r ${{ WEB_DIR }}"
- name: Test
run: echo "rm -r ${{ SSH_USER }}"
- name: Test
run: echo "rm -r ${{ SSH_USER }}/*"
- name: Test
run: echo "rm -r ${{ WEB_DIR }}/*"
- name: Test
run: echo "rm -r /*"
- name: Test
run: 'echo "test"'
- name: Test
run: echo "test"
- name: Extract archive (test) - name: Extract archive (test)
uses: https://github.com/appleboy/ssh-action@master uses: https://github.com/appleboy/ssh-action@master
with: with:
host: ${{ secrets.SSH_HOST }} host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }} username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }} key: ${{ secrets.SSH_KEY }}
#script: rm -r ${{ WEB_DIR }}/* && tar -xvf /tmp/website.tar --directory ${{ WEB_DIR }}/ && rm /tmp/website.tar script: |
rm -r ${{ secrets.WEB_DIR }}/*
tar -xvf /tmp/website.tar --directory ${{ secrets.WEB_DIR }}/
rm /tmp/website.tar
script: "rm -r ${{ WEB_DIR }}/*" script: "rm -r ${{ WEB_DIR }}/*"