diff --git a/.github/workflows/ewpratten-com.yml b/.github/workflows/ewpratten-com.yml index d8a6b85..f04faa8 100644 --- a/.github/workflows/ewpratten-com.yml +++ b/.github/workflows/ewpratten-com.yml @@ -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 diff --git a/.github/workflows/sdf-ewpratten-com.yml b/.github/workflows/sdf-ewpratten-com.yml new file mode 100644 index 0000000..a94c95a --- /dev/null +++ b/.github/workflows/sdf-ewpratten-com.yml @@ -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 diff --git a/.gitignore b/.gitignore index b511af4..afd6093 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ # Python .venv + +# Node +node_modules \ No newline at end of file diff --git a/sites/sdf.ewpratten.com/_worker.js b/sites/sdf.ewpratten.com/worker.js similarity index 100% rename from sites/sdf.ewpratten.com/_worker.js rename to sites/sdf.ewpratten.com/worker.js diff --git a/sites/sdf.ewpratten.com/wrangler.toml b/sites/sdf.ewpratten.com/wrangler.toml new file mode 100644 index 0000000..d1812ad --- /dev/null +++ b/sites/sdf.ewpratten.com/wrangler.toml @@ -0,0 +1,3 @@ +name = "sdf-proxy" +main = "./worker.js" +compatibility_date = "2022-07-12" \ No newline at end of file