From ee91732b6abcdcd7864f209f061f693c4f3cde16 Mon Sep 17 00:00:00 2001 From: hbd <59119064+humanbydefinition@users.noreply.github.com> Date: Sat, 17 Oct 2026 03:20:01 +0200 Subject: [PATCH] chore(hosting): prepare Cloudflare Pages migration --- .github/workflows/deploy.yml | 89 ------------------------------------ public/CNAME | 1 - 2 files changed, 90 deletions(-) delete mode 100644 .github/workflows/deploy.yml delete mode 100644 public/CNAME diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 286cdf4e..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Deploy VitePress site to Pages - -on: - push: - branches: [main] - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: pages - cancel-in-progress: false - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - - name: Setup Node - uses: actions/setup-node@v7 - with: - node-version-file: .nvmrc - cache: npm - - - name: Report toolchain - run: node --version && npm --version - - - name: Setup Pages - uses: actions/configure-pages@v6 - - - name: Install dependencies - run: npm ci - - - name: Build VitePress site - run: npm run build - - - name: Upload artifact - uses: actions/upload-pages-artifact@v5 - with: - path: .vitepress/dist - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build - runs-on: ubuntu-latest - name: Deploy - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v5 - - indexnow: - needs: deploy - if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v7 - - - name: Setup Node - uses: actions/setup-node@v7 - with: - node-version-file: .nvmrc - - - name: Resolve IndexNow key from committed key file - run: | - KEY_FILE=$(grep -lE '^[A-Za-z0-9-]{8,128}$' public/*.txt 2>/dev/null | head -n1) - if [ -z "$KEY_FILE" ]; then - echo "::error::No IndexNow key file found in public/" - exit 1 - fi - echo "INDEXNOW_KEY=$(basename "$KEY_FILE" .txt)" >> "$GITHUB_ENV" - - - name: Submit recently modified docs to IndexNow - env: - INDEXNOW_HOST: code.textmode.art - run: | - npx --yes "indexnow-submitter@^1.5.0" submit-sitemap \ - https://code.textmode.art/sitemap.xml \ - --modified-since "$(date -u -d '2 days ago' +%F)" diff --git a/public/CNAME b/public/CNAME deleted file mode 100644 index eb66fd25..00000000 --- a/public/CNAME +++ /dev/null @@ -1 +0,0 @@ -code.textmode.art \ No newline at end of file