From 621adbb1ab67f666ca1379a80baa1e309f2615f7 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Mon, 13 Oct 2025 22:51:53 +0100 Subject: [PATCH] ci: testing build --- .github/workflows/build-renderer.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-renderer.yml diff --git a/.github/workflows/build-renderer.yml b/.github/workflows/build-renderer.yml new file mode 100644 index 00000000..b5fb3164 --- /dev/null +++ b/.github/workflows/build-renderer.yml @@ -0,0 +1,36 @@ +name: Build + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: push + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.18.0 + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-scripts + + - name: Build Renderer + run: electron-vite build + env: + RENDERER_VITE_EXTERNAL_RESOURCES_URL: ${{ vars.EXTERNAL_RESOURCES_URL }} + + - name: Deploy with wrangler + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy out/renderer --project-name=hydra-staging + gitHubToken: ${{ secrets.GITHUB_TOKEN }}