Skip to content

Commit

Permalink
Merge branch 'test/cd'
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Feb 19, 2024
1 parent d9bbe47 commit dcca21f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cloudflare-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy to Cloudflare Pages

on:
workflow_dispatch:
workflow_run:
workflows: ["Build"] # Needs to build first before we can deploy.
types:
Expand Down Expand Up @@ -31,7 +32,7 @@ jobs:
repository: ${{ github.repository }}
production_branch: ${{ github.event.repository.default_branch }}
output_directory: "dist"
is_production: ${{ github.event_name == 'push' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}' }}
current_branch: ${{ github.ref_name }}
# env:
# Add any environment variables you need to pass along here
# SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ node_modules
.yarn
.pnp.cjs
.pnp.loader.mjs
static/dist
.env
.env
dist
2 changes: 1 addition & 1 deletion build/esbuild-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { esBuildContext } from "./esbuild-build";
export async function server() {
const _context = await esbuild.context(esBuildContext);
const { port } = await _context.serve({
servedir: "static",
servedir: "dist",
port: 8080,
});
console.log(`http://localhost:${port}`);
Expand Down

0 comments on commit dcca21f

Please sign in to comment.