Skip to content

Commit

Permalink
ci: init
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Oct 27, 2024
1 parent 21e1300 commit 4f1a561
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 44 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Deploy to Cloudflare Pages
on: [push]

jobs:
deploy:
environment: cloudflare-pages
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"playwright": "^1.48.2",
"rehype-mermaid": "^3.0.0",
"typescript": "^5.5.4",
"wrangler": "^3.68.0"
"wrangler": "^3.83.0"
}
}
98 changes: 55 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name = "auth-wiki"
pages_build_output_dir = "dist"
compatibility_date = "2024-10-27"

[env.production.vars]
NODE_VERSION = "20"
PNPM_VERSION = "9"

0 comments on commit 4f1a561

Please sign in to comment.