diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index efeb552..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Build Website - -on: - push: - branches: - - "*" - # Master has its own set of build rules, - # and will eventually call this script on its own - - "!master" - workflow_call: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - # - name: Setup Node.js - # uses: actions/setup-node@v1 - # with: - # node-version: 12.x - - # - name: Install dependencies - # run: npm install - - - name: Allow all dirs - run: git config --global --add safe.directory '*' - - - name: Build only - uses: shalzz/zola-deploy-action@v0.16.1-1 - env: - BUILD_ONLY: true - - - name: Disable Jekyll - run: sudo touch ./public/.nojekyll - - - name: Delete dist gitignore - run: sudo rm -f ./public/dist/.gitignore - - - name: Upload site as artifact - uses: actions/upload-pages-artifact@v1 - with: - path: ./public diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 13dde81..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Deploy -on: - push: - branches: - - "master" - -jobs: - build: - uses: ./.github/workflows/build.yml - - deploy: - runs-on: ubuntu-latest - needs: build - permissions: - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 - - # purge_cache: - # runs-on: ubuntu-latest - # needs: deploy - # environment: - # name: cloudflare-api - # steps: - # - name: Purge Cloudflare Cache - # uses: jakejarvis/cloudflare-purge-action@master - # env: - # CLOUDFLARE_ZONE: "ewpratten.com" - # CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} diff --git a/static/functions/_middleware.js b/static/functions/_middleware.js index 75f78a9..37e6805 100644 --- a/static/functions/_middleware.js +++ b/static/functions/_middleware.js @@ -26,7 +26,7 @@ async function goat_counter_analytics(context) { }; // Count the goat - await fetch(`https://${context.env.GOAT_COUNTER_SITE_CODE}.goatcounter.com/api/v0/count`, { + fetch(`https://${context.env.GOAT_COUNTER_SITE_CODE}.goatcounter.com/api/v0/count`, { method: 'POST', headers: { 'Content-Type': 'application/json',