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:
|
on:
|
||||||
push:
|
push:
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/ewpratten-com.yml"
|
||||||
|
- "sites/ewpratten.com/**"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ZOLA_VERSION: 0.15.3
|
ZOLA_VERSION: 0.15.3
|
||||||
@ -20,4 +23,4 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd sites/ewpratten.com
|
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
|
# Python
|
||||||
.venv
|
.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