diff --git a/.gitea/workflows/hugo.yaml b/.gitea/workflows/hugo.yaml index 9706e52..0b44ebf 100644 --- a/.gitea/workflows/hugo.yaml +++ b/.gitea/workflows/hugo.yaml @@ -54,28 +54,16 @@ jobs: target: /tmp/ 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) uses: https://github.com/appleboy/ssh-action@master with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USER }} 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 }}/*"