From da167b3fba72cbbd38d4b06da2010b4cdabe4e3d Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Fri, 26 Apr 2024 11:52:03 +0100 Subject: [PATCH] Try to fix yaml --- .gitea/workflows/build-and-copy.yaml | 33 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/build-and-copy.yaml b/.gitea/workflows/build-and-copy.yaml index 3437dc4..5ece68d 100644 --- a/.gitea/workflows/build-and-copy.yaml +++ b/.gitea/workflows/build-and-copy.yaml @@ -36,20 +36,19 @@ jobs: - name: Copy _site to prod run: scp -rp _site/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/blog/ - name: Purge XML files from cache - run: - - | - curl --request POST - --url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.xml&async=false' - --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}' - - name: Purge JSON files from cache - run: - - | - curl --request POST - --url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.json&async=false' - --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}' - - name: Purge CSS files from cache - run: - - | - curl --request POST - --url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.css&async=false' - --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}' \ No newline at end of file + run: | + curl --request POST \ + --url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.xml&async=false' \ + --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}' + # - name: Purge JSON files from cache + # run: + # - | + # curl --request POST + # --url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.json&async=false' + # --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}' + # - name: Purge CSS files from cache + # run: + # - | + # curl --request POST + # --url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.css&async=false' + # --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}' \ No newline at end of file