Compare commits
6 Commits
6f22edfa95
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4716ced74c | |||
| 2b8bd62757 | |||
| 8090549e01 | |||
| 87ae036d50 | |||
| a347f3f625 | |||
| 0fda2d83eb |
@@ -1,5 +1,4 @@
|
||||
---
|
||||
skill:
|
||||
name: voice-check
|
||||
description: >
|
||||
LLM-as-judge anti-slop and voice authenticity check for blog posts.
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
name: Deploy to Cloudflare Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:22
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: git clone --depth 1 --branch main https://git.ampbox.io/${{ github.repository }}.git .
|
||||
|
||||
- name: Build and deploy
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
npx wrangler pages deploy dist/ --project-name=crashtestdev
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
@@ -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"
|
||||
@@ -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
@@ -65,8 +65,7 @@ const workbenchTheme = {
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
site: 'https://kenotron.github.io',
|
||||
base: '/crashtestdev',
|
||||
site: 'https://crashtestdev.com',
|
||||
integrations: [
|
||||
mdx(),
|
||||
],
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user