Skip to content

Commit 6178fcc

Browse files
committed
add workflow_dispath
1 parent e5237d3 commit 6178fcc

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: Deploy to Cloudflare Pages
2-
on: [push]
2+
on:
3+
push:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
description: "Choose an environment to deploy to: <dev|staging|prod>"
8+
required: true
9+
default: "dev"
310

411
jobs:
512
deploy:
@@ -24,6 +31,6 @@ jobs:
2431
with:
2532
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2633
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
27-
command: pages deploy public --project-name=rescript-lang-org
34+
command: pages deploy build/client --project-name=rescript-lang-org
2835
# Optional: Enable this if you want to have GitHub Deployments triggered
2936
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.

react-router.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,4 @@ export default {
2323
...stdlibPaths,
2424
];
2525
},
26-
buildEnd: async () => {
27-
fs.cpSync("./build/client", "./out", { recursive: true });
28-
},
2926
};

0 commit comments

Comments
 (0)