This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
forked from helix-bridge/helix-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: deployment * CI --------- Co-authored-by: fewensa <[email protected]>
- Loading branch information
1 parent
519cad0
commit 850156e
Showing
3 changed files
with
136 additions
and
0 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,46 @@ | ||
name: Deploy development | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
deploy-package: | ||
name: Deploy package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
repository: darwinia-network/devops | ||
path: .github | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy mainnet | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
preview_output: true | ||
alias_domain: "helix-xtoken-dev" | ||
project_name: "helix-xtoken-ui" | ||
script_run: false | ||
dist_path: . | ||
enable_notify_comment: true | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy testnet | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
preview_output: true | ||
alias_domain: "helix-xtoken-dev-test" | ||
project_name: "helix-xtoken-ui-test" | ||
script_run: false | ||
dist_path: . | ||
enable_notify_comment: true | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} |
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,46 @@ | ||
name: Deploy production | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
deploy-package: | ||
name: Deploy package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
repository: darwinia-network/devops | ||
path: .github | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy mainnet | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
preview_output: true | ||
prod_mode: true | ||
project_name: "helix-xtoken-ui" | ||
script_run: false | ||
dist_path: . | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy testnet | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
preview_output: true | ||
alias_domain: "helix-xtoken-prd-test" | ||
project_name: "helix-xtoken-ui-test" | ||
script_run: false | ||
dist_path: . | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} |
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,44 @@ | ||
name: Deploy staging | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-package: | ||
name: Deploy package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
repository: darwinia-network/devops | ||
path: .github | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy mainnet | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
preview_output: true | ||
alias_domain: "helix-xtoken-stg" | ||
project_name: "helix-xtoken-ui" | ||
script_run: false | ||
dist_path: . | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy testnet | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
preview_output: true | ||
alias_domain: "helix-xtoken-stg-test" | ||
project_name: "helix-xtoken-ui-test" | ||
script_run: false | ||
dist_path: . | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} |