cut CI time in half by switching to simple bash commands

This commit is contained in:
2020-05-31 15:49:33 -04:00
parent f5225f5918
commit 590c0b4939
2 changed files with 17 additions and 6 deletions
+15 -6
View File
@@ -9,12 +9,21 @@ jobs:
deploy:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
CF_ZONE_ID: "92e2ec634800f776ec4f3e983491c349"
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: cloudflare/wrangler-action@master
- uses: actions/setup-node@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
- uses: jakejarvis/cloudflare-purge-action@master
env:
CLOUDFLARE_ZONE: "92e2ec634800f776ec4f3e983491c349"
CLOUDFLARE_TOKEN: ${{ secrets.CF_API_TOKEN }}
node-version: 12
- run: |
mkdir -p $HOME/.wrangler
chmod -R 770 $HOME/.wrangler
- run: npm install --global @cloudflare/wrangler
- run: wrangler publish
- run: |
curl -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/purge_cache" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $CF_API_TOKEN" \
--data '{"purge_everything":true}'