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}'
+2
View File
@@ -1,5 +1,7 @@
# 💾 [y2k.lol](https://y2k.lol/)
![Deploy](https://github.com/jakejarvis/y2k/workflows/Deploy/badge.svg)
Nostalgic time machine powered by on-demand Windows Me VMs and [my first website](https://jarv.is/y2k/). Inspired by [charlie.bz](https://charlie.bz/) (and quarantine boredom).
The backend isn't quite ready to be open-sourced (read: it's still a fatally embarrassing ball of spaghetti) but will be moved here very soon! 🍝