Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa authored Feb 2, 2024
1 parent ac0bb48 commit f5765b1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ jobs:
enable_notify_slack: true
slack_channel: public-darwinia-ecosystem
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

23 changes: 18 additions & 5 deletions .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,33 @@ jobs:

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}"
repository: darwinia-network/devops
path: .github

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Prepare Project Config
run: |
mv vercel.json build/
mv api build/
- uses: ./.github/actions/smart-vercel
name: Deploy to Vercel
with:
node_version: 16.17.0
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
project_name: home
prod_mode: true
script_run: false
enable_cache: true
enable_notify_slack: true
slack_channel: public-darwinia-ecosystem
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,33 @@ jobs:

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}"
repository: darwinia-network/devops
path: .github

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Prepare Project Config
run: |
mv vercel.json build/
mv api build/
- uses: ./.github/actions/smart-vercel
name: Deploy to Vercel
id: smart-vercel
with:
node_version: 16.17.0
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
project_name: home
script_run: false
enable_cache: true
enable_notify_slack: true
slack_channel: public-darwinia-ecosystem
Expand Down

0 comments on commit f5765b1

Please sign in to comment.