From b387325c0942085f987c9d77b6be9327cadfe0ee Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 9 Dec 2024 14:43:06 +0800 Subject: [PATCH] Smart wallet github deploy action (#883) --- .github/workflows/smart-wallet-deploy-dev.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/smart-wallet-deploy-dev.yml diff --git a/.github/workflows/smart-wallet-deploy-dev.yml b/.github/workflows/smart-wallet-deploy-dev.yml new file mode 100644 index 00000000..840d8d33 --- /dev/null +++ b/.github/workflows/smart-wallet-deploy-dev.yml @@ -0,0 +1,32 @@ +name: Deploy stg (smart wallet) + +on: + push: + branches: [main] + paths: ["apps/smart-wallet/**"] + workflow_dispatch: + +jobs: + deploy-package: + name: Deploy package + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - uses: darwinia-network/devops/actions/smart-vercel@main + name: Deploy app + with: + node_version: 20 + vercel_token: ${{ secrets.VERCEL_TOKEN }} + vercel_group: itering + preview_section: helix-app-testnet + preview_output: true + alias_domain: "smart-wallet-dev" + project_name: "helix-apps-test" + script_install: pnpm install + script_build: pnpm --filter smart-wallet run build + dist_path: apps/smart-wallet/dist + slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}