Skip to content

Commit faa528a

Browse files
authored
Deploy entrypoint and app (#48)
1 parent 85953a6 commit faa528a

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ jobs:
2626
- run: pnpm lint
2727

2828
- run: pnpm prepare-deploy
29-
# @todo is there a better way to write this? we want prod build from main
29+
30+
# deploy app
3031
- uses: ngduc/vercel-deploy-action@master
3132
if: ${{ github.ref == 'refs/heads/main' }}
3233
with:
3334
vercel-cli: vercel
34-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
35+
vercel-project-id: ${{ secrets.VERCEL_APP_PROJECT_ID}}
3536
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
3637
vercel-token: ${{ secrets.VERCEL_TOKEN }}
3738
scope: ${{ secrets.VERCEL_ORG_ID }}
@@ -43,7 +44,7 @@ jobs:
4344
if: ${{ github.ref != 'refs/heads/main' }}
4445
with:
4546
vercel-cli: vercel
46-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
47+
vercel-project-id: ${{ secrets.VERCEL_APP_PROJECT_ID}}
4748
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
4849
vercel-token: ${{ secrets.VERCEL_TOKEN }}
4950
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -52,3 +53,17 @@ jobs:
5253
vercel-args: "--target staging"
5354
env:
5455
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
56+
57+
# deploy entrypoint (no preview)
58+
- uses: ngduc/vercel-deploy-action@master
59+
if: ${{ github.ref == 'refs/heads/main' }}
60+
with:
61+
vercel-cli: vercel
62+
vercel-project-id: ${{ secrets.VERCEL_ENTRYPOINT_PROJECT_ID}}
63+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
64+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
65+
scope: ${{ secrets.VERCEL_ORG_ID }}
66+
working-directory: packages/entrypoint/dist
67+
vercel-args: "--prod"
68+
env:
69+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

packages/entrypoint/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ explorer][explorers], change the TLD (i.e. `.io`, `.com`) to `.deth.net`. )
2323
as the iframe `src`.
2424

2525
- **`pnpm build:production`** - Builds the website to `./dist` directory, using
26-
*https://ecv.deth.net* as the iframe `src`.
26+
*https://code.deth.net* as the iframe `src`.
2727

2828
- **`pnpm dev`** - runs `build` and `serve`.

packages/entrypoint/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { copySync, readFileSync, writeFileSync, rmSync } = require("fs-extra");
55

66
const { argv } = require("./argv");
77

8-
const PRODUCTION_URL = "https://ecv.deth.net";
8+
const PRODUCTION_URL = "https://code.deth.net";
99
const DEVELOPMENT_URL = "https://localhost:5001";
1010

1111
rmSync("./dist", { recursive: true, force: true });

packages/vscode-host/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Ethereum Code Viewer</title>
66
<script
77
defer
8-
data-domain="ecv.deth.net"
8+
data-domain="code.deth.net"
99
src="https://plausible.io/js/plausible.js"
1010
></script>
1111

packages/vscode-host/src/deth/in-iframe/patchForWorkingInIframe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as setTitle from "./setTitle";
1313
* @see /packages/entrypoint/README.md
1414
*/
1515
export function patchForWorkingInIframe() {
16-
// We don't have to do anything here if the user visited ecv.deth.net directly.
16+
// We don't have to do anything here if the user visited code.deth.net directly.
1717
if (window.parent === window) return;
1818

1919
// If the message channel is not open yet, we store a listener for it.

0 commit comments

Comments
 (0)