diff --git a/.amplifier/skills/voice-check/SKILL.md b/.amplifier/skills/voice-check/SKILL.md index 1b0c484..25d4349 100644 --- a/.amplifier/skills/voice-check/SKILL.md +++ b/.amplifier/skills/voice-check/SKILL.md @@ -1,15 +1,14 @@ --- -skill: - name: voice-check - description: > - LLM-as-judge anti-slop and voice authenticity check for blog posts. - Runs a mechanical lint (em-dashes, trigger words, hedging) then an LLM - evaluation against the author's voice profile for deeper pattern detection. - version: 1.0.0 - context: fork - user-invocable: true - disable-model-invocation: true - model_role: critique +name: voice-check +description: > + LLM-as-judge anti-slop and voice authenticity check for blog posts. + Runs a mechanical lint (em-dashes, trigger words, hedging) then an LLM + evaluation against the author's voice profile for deeper pattern detection. +version: 1.0.0 +context: fork +user-invocable: true +disable-model-invocation: true +model_role: critique --- # Voice Check -- Anti-Slop & Voice Authenticity Judge diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..1d56528 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy to Cloudflare Pages + +on: + push: + branches: + - main + +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 \ No newline at end of file diff --git a/.github/workflows/azure-static-web-apps-salmon-sea-0f0c8771e.yml b/.github/workflows/azure-static-web-apps-salmon-sea-0f0c8771e.yml deleted file mode 100644 index 22bb814..0000000 --- a/.github/workflows/azure-static-web-apps-salmon-sea-0f0c8771e.yml +++ /dev/null @@ -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" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index bd69c03..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs index 5c37edf..59f8a41 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -65,8 +65,7 @@ const workbenchTheme = { }; export default defineConfig({ - site: 'https://kenotron.github.io', - base: '/crashtestdev', + site: 'https://crashtestdev.com', integrations: [ mdx(), ], diff --git a/tests/check-navbar.mjs b/tests/check-navbar.mjs index e97017a..fc1f77c 100644 --- a/tests/check-navbar.mjs +++ b/tests/check-navbar.mjs @@ -116,7 +116,7 @@ if (existsSync(resolve('src/pages/index.astro'))) { // ── 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)) { const html = readFileSync(indexPath, 'utf-8'); diff --git a/tests/shiki-theme.test.mjs b/tests/shiki-theme.test.mjs index 34b2c37..2632145 100644 --- a/tests/shiki-theme.test.mjs +++ b/tests/shiki-theme.test.mjs @@ -138,9 +138,8 @@ describe('workbenchTheme in astro.config.mjs', () => { assert.equal(tc.settings.foreground, '#A0522D'); }); - it('should preserve site and base config', () => { - assert.equal(config.site, 'https://kenotron.github.io'); - assert.equal(config.base, '/crashtestdev'); + it('should preserve site config', () => { + assert.equal(config.site, 'https://crashtestdev.com'); }); it('should include mdx integration', () => { diff --git a/tests/verify-scaffold.mjs b/tests/verify-scaffold.mjs index dd10dc9..862cab4 100644 --- a/tests/verify-scaffold.mjs +++ b/tests/verify-scaffold.mjs @@ -63,8 +63,7 @@ const astroConfigPath = join(root, 'astro.config.mjs'); assert(existsSync(astroConfigPath), 'astro.config.mjs exists'); if (existsSync(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("base:") || config.includes("base :") || config.includes("'/crashtestdev'") || config.includes('"/crashtestdev"'), 'base is /crashtestdev'); + assert(config.includes("'https://crashtestdev.com'") || config.includes('"https://crashtestdev.com"'), 'site is https://crashtestdev.com'); assert(config.includes('@astrojs/mdx'), 'mdx integration referenced'); }