From c82f46cc88f4f6212e92b3b282914ee3942b05a9 Mon Sep 17 00:00:00 2001 From: maru Date: Tue, 23 Apr 2024 19:31:40 -0400 Subject: [PATCH] Update deploy job --- .github/workflows/deploy.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aad509c3a7e..11b970150eb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,11 +28,6 @@ jobs: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - name: Deploy build on server if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch - run: rsync -vrm dist/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.DESTINATION_DIR }} - - name: Purge Cloudflare Cache - if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch - id: purge-cache - uses: NathanVaughn/actions-cloudflare-purge@v3.1.0 - with: - cf_auth: ${{ secrets.CLOUDFLARE_API_TOKEN }} - cf_zone: ${{ secrets.CLOUDFLARE_ZONE_ID }} + run: | + rsync -vrm dist/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.DESTINATION_DIR }} + ssh -t ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "~/prmanifest --inpath ${{ secrets.DESTINATION_DIR }} --outpath ${{ secrets.DESTINATION_DIR }}/manifest.json"