Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI #2

Merged
merged 1 commit into from
Oct 13, 2023
Merged

CI #2

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
34 changes: 34 additions & 0 deletions .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy production

on:
push:
tags:
- 'v*'

jobs:

deploy-package:
name: Deploy package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: darwinia-network/devops
path: .github/actions

- uses: ./.github/actions/smart-vercel
name: Deploy app
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
prod_mode: true
project_name: "crosschain-ui"
script_run: false
dist_path: .
enable_notify_slack: true
slack_channel: darwinia-apps
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

33 changes: 33 additions & 0 deletions .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy staging

on:
push:
branches: [main]
workflow_dispatch:

jobs:
deploy-package:
name: Deploy package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: darwinia-network/devops
path: .github/actions

- uses: ./.github/actions/smart-vercel
name: Deploy app
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
alias_domain: "crosschain-stg"
project_name: "crosschain-ui"
script_run: false
dist_path: .
enable_notify_slack: true
slack_channel: darwinia-apps
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}