create deploy script for sdf.ew
This commit is contained in:
parent
d5284ce3ed
commit
386de203c2
7
.github/workflows/ewpratten-com.yml
vendored
7
.github/workflows/ewpratten-com.yml
vendored
@ -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
21
.github/workflows/sdf-ewpratten-com.yml
vendored
Normal 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
3
.gitignore
vendored
@ -1,2 +1,5 @@
|
||||
# Python
|
||||
.venv
|
||||
|
||||
# Node
|
||||
node_modules
|
3
sites/sdf.ewpratten.com/wrangler.toml
Normal file
3
sites/sdf.ewpratten.com/wrangler.toml
Normal file
@ -0,0 +1,3 @@
|
||||
name = "sdf-proxy"
|
||||
main = "./worker.js"
|
||||
compatibility_date = "2022-07-12"
|
Loading…
x
Reference in New Issue
Block a user