From 892372278ebfbfd4d2d4c7c87f612996e3b921b9 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Sun, 25 Dec 2022 06:00:57 +0000 Subject: [PATCH] ci: compress csv --- .github/workflows/pages.yml | 8 ++++---- .gitlab-ci.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index efb4fa6..de81b50 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -19,21 +19,21 @@ jobs: run: sh ./src/script.sh - name: Compress run: | - find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\)$' -exec gzip -f -k -9 {} \; - find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\)$' -exec brotli -f -k -9 {} \; + find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec gzip -f -k -9 {} \; + find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec brotli -f -k -9 {} \; - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public force_orphan: true - - name: 'Upload Public Folder' + - name: "Upload Public Folder" uses: actions/upload-artifact@v2 with: name: public path: ./public retention-days: 30 - - name: 'Upload Tmp Folder' + - name: "Upload Tmp Folder" uses: actions/upload-artifact@v2 with: name: tmp diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 24a6b92..2bf1f26 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,8 +16,8 @@ build_job: script: - sh src/script.sh - - find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\)$' -exec gzip -f -k -9 {} \; - - find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\)$' -exec brotli -f -k -9 {} \; + - find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec gzip -f -k -9 {} \; + - find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\|csv\)$' -exec brotli -f -k -9 {} \; artifacts: paths: @@ -43,7 +43,7 @@ cloudflare: stage: deploy before_script: - - apk update && apk add curl + - apk update && apk add curl script: - curl -X POST "https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/$CLOUDFLARE_BUILD_HOOK"