Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 38 additions & 73 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@ name: Build Non Prod
on:
workflow_call:
inputs:
name:
type: string
required: true
separator:
type: string
advanced-tools-branch:
type: string
required: true
default: main
environment:
type: string
required: true
default: Cloudflare-Preview
public-url:
type: string
app-domain:
type: string
default: "portalbridge.com"
wac-url-template:
type: string
default: "https://wac.staging.gfx.town"
project-branch:
type: string
default: main
name:
type: string
required: true
separator:
type: string
advanced-tools-branch:
type: string
required: true
default: main
environment:
type: string
required: true
default: Cloudflare-Preview
public-url:
type: string
app-domain:
type: string
default: "portalbridge.com"
wac-url-template:
type: string
default: "https://wac.staging.gfx.town"
project-branch:
type: string
default: main
outputs:
pkg-version:
description: "NPM Package Version"
value: ${{ jobs.token-bridge.outputs.pkg-version }}
jobs:
pkg-version:
description: "NPM Package Version"
value: ${{ jobs.token-bridge.outputs.pkg-version }}
jobs:
docs:
name: "Documentation"
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
with:
name: build-docs
path: apps/docs/build

advanced-tools:
name: "Advance Tools"
runs-on: xlabs-large-runner
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-${{inputs.name}}-redirects
cancel-in-progress: true
cancel-in-progress: true
steps:
- name: Set up Node environment
uses: actions/setup-node@v3
Expand All @@ -136,38 +136,7 @@ jobs:
with:
name: build-redirects
path: apps/redirects/dist
rewards-dashboard:
name: "Rewards Dashboard"
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.ref }}-${{inputs.name}}-rewards-dashboard
cancel-in-progress: true
environment: ${{inputs.environment}}
steps:
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: v18.17.1
- name: Checkout Rewards Dashboard
uses: actions/checkout@v3
with:
ref: ${{ inputs.project-branch }}
- name: Build Rewards Dashboard
env:
PUBLIC_URL: ${{ inputs.public-url }}
VITE_WAC_URL_TEMPLATE: ${{ inputs.wac-url-template }}
VITE_APP_WALLET_CONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLET_CONNECT_PROJECT_ID }}
VITE_APP_DOMAIN: ${{ inputs.app-domain }}
run: |
pushd apps/rewards-dashboard
npm ci
npm run build
- name: Upload Rewards Dashboard Artifact
uses: actions/upload-artifact@v4
with:
name: build-rewards-dashboard
path: apps/rewards-dashboard/dist


usdc-bridge:
name: "USDC Bridge"
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -217,7 +186,7 @@ jobs:
with:
name: build-usdc-bridge
path: connect-loader/apps/connect/dist

token-bridge:
name: "Token Bridge"
runs-on: "ubuntu-latest"
Expand All @@ -242,7 +211,7 @@ jobs:
pushd connect-loader
git config user.name "xLabs CI"
git config user.email "[email protected]"
- name: Set Portal Bridge Version
- name: Set Portal Bridge Version
id: set-version
run: |
pushd connect-loader/apps/connect
Expand Down Expand Up @@ -291,7 +260,7 @@ jobs:
pushd connect-loader
git config user.name "xLabs CI"
git config user.email "[email protected]"
- name: Set Portal Bridge Version
- name: Set Portal Bridge Version
id: set-version
run: |
pushd connect-loader/apps/connect-v1
Expand Down Expand Up @@ -340,7 +309,7 @@ jobs:
pushd connect-loader
git config user.name "xLabs CI"
git config user.email "[email protected]"
- name: Set Portal Bridge Version
- name: Set Portal Bridge Version
id: set-version
run: |
pushd connect-loader/apps/connect-v1
Expand Down Expand Up @@ -373,7 +342,6 @@ jobs:
- token-bridge
- tbtc-bridge-v1
- token-bridge-v1
- rewards-dashboard
- redirects
- docs
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -401,18 +369,15 @@ jobs:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: build-usdc-bridge
path: usdc-bridge
name: build-usdc-bridge
path: usdc-bridge
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: build-advanced-tools
path: advanced-tools
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: build-rewards-dashboard
path: rewards-dashboard
- name: Download Artifact
uses: actions/download-artifact@v4
with:
Expand All @@ -438,4 +403,4 @@ jobs:
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm publish
run: npm publish
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ usdc-bridge:
act --artifact-server-path /tmp/act-artifacts pull_request -j usdc-bridge -s GITHUB_TOKEN=${GITHUB_TOKEN}
token-bridge:
act --artifact-server-path /tmp/act-artifacts pull_request -j token-bridge -s GITHUB_TOKEN=${GITHUB_TOKEN}
rewards-dashboard:
act --artifact-server-path /tmp/act-artifacts pull_request -j rewards-dashboard -s GITHUB_TOKEN=${GITHUB_TOKEN}
1 change: 0 additions & 1 deletion apps/connect-v1/src/env/tbtc-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const ENV: Env = {
// },
{ label: "USDC", href: `${PUBLIC_URL}/usdc-bridge` },
{ label: "tBTC", active: true, href: `${PUBLIC_URL}/tbtc-bridge` },
{ label: "Rewards", href: `${PUBLIC_URL}/rewards-dashboard` },
{
label: "Advanced Tools",
isBlank: true,
Expand Down
1 change: 0 additions & 1 deletion apps/connect-v1/src/env/token-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export const ENV: Env = {
// },
{ label: "USDC", href: USDC_BRIDGE_HREF },
{ label: "tBTC", href: `${PUBLIC_URL}/tbtc-bridge` },
{ label: "Rewards", href: `${PUBLIC_URL}/rewards-dashboard` },
{
label: "Advanced Tools",
isBlank: true,
Expand Down
1 change: 0 additions & 1 deletion apps/connect/src/env/token-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const ENV: Env = {
// },
{ label: "USDC", href: USDC_BRIDGE_HREF },
{ label: "tBTC", href: `${PUBLIC_URL}/tbtc-bridge` },
{ label: "Rewards", href: `${PUBLIC_URL}/rewards-dashboard` },
{
label: "Advanced Tools",
isBlank: true,
Expand Down
1 change: 0 additions & 1 deletion apps/connect/src/env/usdc-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const ENV: Env = {
// },
{ label: "USDC", active: true, href: `${PUBLIC_URL}/usdc-bridge` },
{ label: "tBTC", href: `${PUBLIC_URL}/tbtc-bridge` },
{ label: "Rewards", href: `${PUBLIC_URL}/rewards-dashboard` },
{
label: "Advanced Tools",
isBlank: true,
Expand Down
18 changes: 0 additions & 18 deletions apps/rewards-dashboard/.eslintrc.cjs

This file was deleted.

24 changes: 0 additions & 24 deletions apps/rewards-dashboard/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion apps/rewards-dashboard/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion apps/rewards-dashboard/.prettierignore

This file was deleted.

13 changes: 0 additions & 13 deletions apps/rewards-dashboard/.prettierrc.json

This file was deleted.

25 changes: 0 additions & 25 deletions apps/rewards-dashboard/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions apps/rewards-dashboard/index.html

This file was deleted.

13 changes: 0 additions & 13 deletions apps/rewards-dashboard/lingui.config.ts

This file was deleted.

Loading