Skip to content

"Vibe-Trading: Your Personal Trading Agent"

ci: deploy wiki to Cloudflare Pages

Haozhe Wu298ada79b77b
diff --git a/.github/workflows/wiki-deploy.yml b/.github/workflows/wiki-deploy.yml
new file mode 100644
index 000000000..a4ba621cc
--- /dev/null
+++ b/.github/workflows/wiki-deploy.yml
@@ -0,0 +1,32 @@
+name: Deploy Wiki
+
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - "wiki/**"
+ - ".github/workflows/wiki-deploy.yml"
+
+concurrency:
+ group: wiki-deploy
+ cancel-in-progress: true
+
+jobs:
+ deploy:
+ name: Deploy to Cloudflare Pages
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ deployments: write
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Deploy wiki
+ uses: cloudflare/wrangler-action@v3
+ with:
+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
+ command: pages deploy wiki --project-name=vibetrading-wiki --branch=main
+ gitHubToken: ${{ secrets.GITHUB_TOKEN }}