ci: adding releases

This commit is contained in:
Chubby Granny Chaser
2025-10-28 22:40:06 +00:00
parent 4acb7f7001
commit ce0619bbe3

View File

@@ -6,23 +6,38 @@ concurrency:
on: on:
push: push:
branches: [main] branches:
- main
- release/**
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
env:
NODE_OPTIONS: --max-old-space-size=4096
BRANCH_NAME: ${{ github.ref_name }}
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js - name: Set up Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 22.21.0 node-version: 22.21.0
cache: 'yarn'
- name: Enable Corepack (Yarn)
run: corepack enable
- name: Install dependencies - name: Install dependencies
run: yarn --frozen-lockfile --ignore-scripts run: yarn install --frozen-lockfile --ignore-scripts
- name: Build Renderer - name: Build Renderer
run: yarn build run: yarn build
@@ -36,5 +51,5 @@ jobs:
run: | run: |
npx --yes wrangler@3 pages deploy out/renderer \ npx --yes wrangler@3 pages deploy out/renderer \
--project-name="hydra" \ --project-name="hydra" \
--commit-dirty=true \ --branch "$BRANCH_NAME" \
--branch="main" --commit-dirty