cut CI time in half by switching to simple bash commands
This commit is contained in:
@@ -9,12 +9,21 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
||||||
|
env:
|
||||||
|
CF_ZONE_ID: "92e2ec634800f776ec4f3e983491c349"
|
||||||
|
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: cloudflare/wrangler-action@master
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
node-version: 12
|
||||||
- uses: jakejarvis/cloudflare-purge-action@master
|
- run: |
|
||||||
env:
|
mkdir -p $HOME/.wrangler
|
||||||
CLOUDFLARE_ZONE: "92e2ec634800f776ec4f3e983491c349"
|
chmod -R 770 $HOME/.wrangler
|
||||||
CLOUDFLARE_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
- 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}'
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# 💾 [y2k.lol](https://y2k.lol/)
|
# 💾 [y2k.lol](https://y2k.lol/)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
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).
|
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! 🍝
|
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! 🍝
|
||||||
|
|||||||
Reference in New Issue
Block a user