feat: migrate hosting to Cloudflare Pages via git.ampbox.io

- Update site URL to https://crashtestdev.com, remove /crashtestdev base path
- Add Gitea Actions workflow for Cloudflare Pages deployment
- Remove GitHub Actions workflows (GitHub Pages + legacy Azure SWA)
- Update tests to match new site config

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
This commit is contained in:
Ken
2026-05-27 22:44:58 +00:00
parent 2a9c91e1e6
commit 6f22edfa95
8 changed files with 46 additions and 118 deletions
+7 -8
View File
@@ -1,15 +1,14 @@
--- ---
skill: name: voice-check
name: voice-check description: >
description: >
LLM-as-judge anti-slop and voice authenticity check for blog posts. LLM-as-judge anti-slop and voice authenticity check for blog posts.
Runs a mechanical lint (em-dashes, trigger words, hedging) then an LLM Runs a mechanical lint (em-dashes, trigger words, hedging) then an LLM
evaluation against the author's voice profile for deeper pattern detection. evaluation against the author's voice profile for deeper pattern detection.
version: 1.0.0 version: 1.0.0
context: fork context: fork
user-invocable: true user-invocable: true
disable-model-invocation: true disable-model-invocation: true
model_role: critique model_role: critique
--- ---
# Voice Check -- Anti-Slop & Voice Authenticity Judge # Voice Check -- Anti-Slop & Voice Authenticity Judge
+31
View File
@@ -0,0 +1,31 @@
name: Deploy to Cloudflare Pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist/ --project-name=crashtestdev
@@ -1,48 +0,0 @@
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- master
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: yarn
- run: yarn build
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v0.0.1-preview
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_SALMON_SEA_0F0C8771E }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/" # App source code path
api_location: "api" # Api source code path - optional
app_artifact_location: "/public" # Built app content directory - optional
###### End of Repository/Build Configurations ######
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v0.0.1-preview
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_SALMON_SEA_0F0C8771E }}
action: "close"
-51
View File
@@ -1,51 +0,0 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist/
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
+1 -2
View File
@@ -65,8 +65,7 @@ const workbenchTheme = {
}; };
export default defineConfig({ export default defineConfig({
site: 'https://kenotron.github.io', site: 'https://crashtestdev.com',
base: '/crashtestdev',
integrations: [ integrations: [
mdx(), mdx(),
], ],
+1 -1
View File
@@ -116,7 +116,7 @@ if (existsSync(resolve('src/pages/index.astro'))) {
// ── Build output checks ── // ── Build output checks ──
console.log('\n--- Build output checks ---'); console.log('\n--- Build output checks ---');
assert(existsSync(indexPath), 'dist/crashtestdev/index.html exists'); assert(existsSync(indexPath), 'dist/index.html exists');
if (existsSync(indexPath)) { if (existsSync(indexPath)) {
const html = readFileSync(indexPath, 'utf-8'); const html = readFileSync(indexPath, 'utf-8');
+2 -3
View File
@@ -138,9 +138,8 @@ describe('workbenchTheme in astro.config.mjs', () => {
assert.equal(tc.settings.foreground, '#A0522D'); assert.equal(tc.settings.foreground, '#A0522D');
}); });
it('should preserve site and base config', () => { it('should preserve site config', () => {
assert.equal(config.site, 'https://kenotron.github.io'); assert.equal(config.site, 'https://crashtestdev.com');
assert.equal(config.base, '/crashtestdev');
}); });
it('should include mdx integration', () => { it('should include mdx integration', () => {
+1 -2
View File
@@ -63,8 +63,7 @@ const astroConfigPath = join(root, 'astro.config.mjs');
assert(existsSync(astroConfigPath), 'astro.config.mjs exists'); assert(existsSync(astroConfigPath), 'astro.config.mjs exists');
if (existsSync(astroConfigPath)) { if (existsSync(astroConfigPath)) {
const config = readText(astroConfigPath); const config = readText(astroConfigPath);
assert(config.includes("site:") || config.includes("site :") || config.includes("'https://kenotron.github.io'") || config.includes('"https://kenotron.github.io"'), 'site is https://kenotron.github.io'); assert(config.includes("'https://crashtestdev.com'") || config.includes('"https://crashtestdev.com"'), 'site is https://crashtestdev.com');
assert(config.includes("base:") || config.includes("base :") || config.includes("'/crashtestdev'") || config.includes('"/crashtestdev"'), 'base is /crashtestdev');
assert(config.includes('@astrojs/mdx'), 'mdx integration referenced'); assert(config.includes('@astrojs/mdx'), 'mdx integration referenced');
} }