From 0979bcb964d9b7c7da731bfccc4b592bd6a613f0 Mon Sep 17 00:00:00 2001 From: otani88 Date: Wed, 20 Nov 2024 16:21:41 +0200 Subject: [PATCH 1/3] add relase workflow for ui --- .github/workflows/build-deploy-prod-ui.yml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build-deploy-prod-ui.yml diff --git a/.github/workflows/build-deploy-prod-ui.yml b/.github/workflows/build-deploy-prod-ui.yml new file mode 100644 index 0000000..fbf9e42 --- /dev/null +++ b/.github/workflows/build-deploy-prod-ui.yml @@ -0,0 +1,42 @@ +name: Build and deploy UI +on: + workflow_dispatch: + push: + tags: + - "*" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + NODE_VERSION: '20.x' +jobs: + build-deploy-static: + name: Build and push Docker image + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node ${{ env.NODE_VERSION }} Environment + uses: actions/setup-node@v1 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install dependencies + run: npm install -g pnpm + + - name: pnpm install + working-directory: ./plugin + run: pnpm install + + - name: pnpm build + working-directory: ./plugin + run: pnpm run build + + - name: Deploy + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy ./plugin/build --project-name=zksync-remix-plugin-prod From 90c0b70e344f8096dbb491c2c69e8481dc0346f9 Mon Sep 17 00:00:00 2001 From: otani88 Date: Wed, 20 Nov 2024 16:41:56 +0200 Subject: [PATCH 2/3] add relase workflow for ui --- .github/workflows/build-deploy-prod-ui.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-deploy-prod-ui.yml b/.github/workflows/build-deploy-prod-ui.yml index fbf9e42..abcbb6f 100644 --- a/.github/workflows/build-deploy-prod-ui.yml +++ b/.github/workflows/build-deploy-prod-ui.yml @@ -11,6 +11,9 @@ concurrency: env: NODE_VERSION: '20.x' + API_SERVICE_URL: "https://remix-plugin-api.zksync.io" + VITE_VERSION: v0.6.3 + WALLETCONNECT_PROJECT_ID: "" jobs: build-deploy-static: name: Build and push Docker image From 50f05bbbe8c4a3b0b1ca023fe1a874668794acc6 Mon Sep 17 00:00:00 2001 From: otani88 Date: Wed, 20 Nov 2024 16:52:05 +0200 Subject: [PATCH 3/3] add relase workflow for ui --- .github/workflows/build-deploy-prod-ui.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-deploy-prod-ui.yml b/.github/workflows/build-deploy-prod-ui.yml index abcbb6f..7fcea39 100644 --- a/.github/workflows/build-deploy-prod-ui.yml +++ b/.github/workflows/build-deploy-prod-ui.yml @@ -19,10 +19,10 @@ jobs: name: Build and push Docker image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 - name: Setup Node ${{ env.NODE_VERSION }} Environment - uses: actions/setup-node@v1 + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 with: node-version: ${{ env.NODE_VERSION }} @@ -38,7 +38,7 @@ jobs: run: pnpm run build - name: Deploy - uses: cloudflare/wrangler-action@v3 + uses: cloudflare/wrangler-action@05f17c4a695b4d94b57b59997562c6a4624c64e4 # v3.12.1 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}