1

create deploy script for sdf.ew

This commit is contained in:
Evan Pratten 2023-11-13 16:43:44 -05:00
parent d5284ce3ed
commit 386de203c2
5 changed files with 32 additions and 2 deletions

View File

@ -1,7 +1,10 @@
name: ewpratten.com
name: "Site: ewpratten.com"
on:
push:
paths:
- ".github/workflows/ewpratten-com.yml"
- "sites/ewpratten.com/**"
env:
ZOLA_VERSION: 0.15.3
@ -20,4 +23,4 @@ jobs:
- name: Build
run: |
cd sites/ewpratten.com
/tmp/zola build
/tmp/zola build

21
.github/workflows/sdf-ewpratten-com.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: "Site: sdf.ewpratten.com"
on:
push:
paths:
- ".github/workflows/sdf-ewpratten-com.yml"
- "sites/sdf.ewpratten.com/**"
jobs:
deploy:
name: Deploy Cloudflare Worker
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Deploy worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: sites/sdf.ewpratten.com

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
# Python
.venv
# Node
node_modules

View File

@ -0,0 +1,3 @@
name = "sdf-proxy"
main = "./worker.js"
compatibility_date = "2022-07-12"