-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from vitelabs/buidl
New features
- Loading branch information
Showing
474 changed files
with
5,312 additions
and
17,140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
VITE_WEB_WALLET_VERSION=4.1.0 | ||
VITE_NETWORK=mainnet | ||
VITE_API_CONFIG=https://config.vite.net | ||
VITE_SERVER=wss://node.vite.net/gvite/ws | ||
VITE_PUSH_SERVER=wss://vitex.vite.net/websocket | ||
VITE_DEX_SERVER=https://vitex.vite.net | ||
VITE_CONNECT=wss://biforst.vite.net | ||
VITE_REWARD_SERVER=https://vitex.vite.net | ||
VITE_CROSSCHAIN_SERVER=https://crosschain.vite.net | ||
VITE_GATEWAY=https://gateway.vite.net | ||
VITE_ETH_SERVER=https://node.vite.net/eth/v3/caae2231051e46a1941f422df1fbcc94 | ||
VITE_ETH_EXPLORER=https://ropsten.etherscan.io | ||
VITE_CONTRACT_ADDRESS=0x1b793e49237758dbd8b752afc9eb4b329d5da016 | ||
VITE_RECAPTCHA_TOKEN=6LdziZ0fAAAAADBzBnGli4Akjok0CoSJ388bRWtw | ||
VITE_VIEW=https://mainnet.viteview.xyz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
VITE_WEB_WALLET_VERSION=4.1.0 | ||
VITE_NETWORK=mainnet | ||
VITE_API_CONFIG=https://config.vite.net | ||
VITE_SERVER=wss://node.vite.net/gvite/ws | ||
VITE_PUSH_SERVER=wss://vitex.vite.net/websocket | ||
VITE_DEX_SERVER=https://vitex.vite.net | ||
VITE_CONNECT=wss://biforst.vite.net | ||
VITE_REWARD_SERVER=https://vitex.vite.net | ||
VITE_CROSSCHAIN_SERVER=https://crosschain.vite.net | ||
VITE_GATEWAY=https://gateway.vite.net | ||
VITE_ETH_SERVER=https://node.vite.net/eth/v3/caae2231051e46a1941f422df1fbcc94 | ||
VITE_ETH_EXPLORER=https://ropsten.etherscan.io | ||
VITE_CONTRACT_ADDRESS=0x1b793e49237758dbd8b752afc9eb4b329d5da016 | ||
VITE_RECAPTCHA_TOKEN=6LdziZ0fAAAAADBzBnGli4Akjok0CoSJ388bRWtw | ||
VITE_VIEW=https://mainnet.viteview.xyz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
VITE_WEB_WALLET_VERSION=4.1.0 | ||
VITE_NETWORK=testnet | ||
VITE_API_CONFIG=https://config.vite.net | ||
VITE_SERVER=wss://buidl.vite.net/gvite/ws | ||
VITE_PUSH_SERVER=wss://buidl.vite.net/vitex/websocket | ||
VITE_DEX_SERVER=https://buidl.vite.net/vitex | ||
VITE_CONNECT=wss://biforst.vite.net | ||
VITE_REWARD_SERVER=https://vitex.vite.net | ||
VITE_CROSSCHAIN_SERVER=https://crosschain-test.vite.net | ||
VITE_GATEWAY= | ||
VITE_ETH_SERVER=https://ropsten.infura.io/http | ||
VITE_ETH_EXPLORER=https://ropsten.etherscan.io | ||
VITE_CONTRACT_ADDRESS=0x54b716345c14ba851f1b51dcc1491abee6ba8f44 | ||
VITE_RECAPTCHA_TOKEN=6LdziZ0fAAAAADBzBnGli4Akjok0CoSJ388bRWtw | ||
VITE_VIEW=https://budil.viteview.xyz |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
|
@@ -36,27 +36,41 @@ jobs: | |
id: nvm | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v2.1.2 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '${{ steps.nvm.outputs.NVMRC }}' | ||
|
||
- uses: bahmutov/npm-install@v1 | ||
|
||
- name: Cache node_modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ubuntu-node-v${{ steps.nvm.outputs.NVMRC }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package.json')) }} | ||
|
||
- name: Install Dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn | ||
|
||
# Runs a set of commands using the runners shell | ||
- name: Build | ||
run: | | ||
export DESKTOP_WALLET_VERSION=`curl -sL https://api.github.com/repos/vitelabs/vite-wallet/releases/latest | grep '"tag_name":' | cut -d'"' -f4` | ||
yarn run build:${{ github.event.inputs.environment }} | ||
- name: Get Build Version | ||
if: ${{ github.event.inputs.environment == 'production' }} | ||
id: version | ||
run: echo "::set-output name=version::$(date +%Y%m%d%H%M)" | ||
|
||
- name: List dist | ||
run: tree dist | ||
|
||
- name: Log in to Docker Hub | ||
if: ${{ github.event.inputs.environment == 'production' }} | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Push to Docker Hub | ||
if: ${{ github.event.inputs.environment == 'production' }} | ||
uses: docker/build-push-action@v2 | ||
|
@@ -65,17 +79,16 @@ jobs: | |
context: . | ||
file: Dockerfile | ||
tags: vitelabs/vite-web-wallet:${{ steps.version.outputs.version }},vitelabs/vite-web-wallet:latest | ||
|
||
- name: Deploy | ||
uses: cloudflare/wrangler-action@1.3.0 | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
environment: ${{ github.event.inputs.environment }} | ||
|
||
- uses: Ilshidur/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_AVATAR: repository | ||
with: | ||
args: 'Action called, Environment: ${{ github.event.inputs.environment }}, Branch: ${{ github.event.inputs.branch }}, Repository: {{ GITHUB_REPOSITORY }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v10 | ||
v20 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.