mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-10 11:28:45 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new workflows for preparing releases, cloud deployment, and coordinated multi-platform releases with manual approval for stable Docker images. - Added a reusable action to output app version, Git hash, and build type for consistent release metadata. - **Refactor** - Simplified and unified input handling across workflows, requiring explicit version and build metadata inputs. - Updated release workflows (desktop, mobile, cloud) to use direct inputs instead of deriving values internally. - **Chores** - Removed several legacy and redundant workflows, including automatic deployment, release, label checking, auto-assign, and Helm chart publishing. - Deleted jobs and workflows related to self-hosted image builds, mobile app test builds, and previous deployment processes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: 'Deploy to Cluster'
|
|
description: 'Deploy AFFiNE Cloud to cluster'
|
|
inputs:
|
|
gcp-project-number:
|
|
description: 'GCP project number'
|
|
required: true
|
|
gcp-project-id:
|
|
description: 'GCP project id'
|
|
required: true
|
|
service-account:
|
|
description: 'Service account'
|
|
cluster-name:
|
|
description: 'Cluster name'
|
|
cluster-location:
|
|
description: 'Cluster location'
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Setup Git short hash
|
|
shell: bash
|
|
run: |
|
|
echo "GIT_SHORT_HASH=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"
|
|
- name: 'Auth to cluster'
|
|
uses: './.github/actions/cluster-auth'
|
|
with:
|
|
gcp-project-number: '${{ inputs.gcp-project-number }}'
|
|
gcp-project-id: '${{ inputs.gcp-project-id }}'
|
|
service-account: '${{ inputs.service-account }}'
|
|
cluster-name: '${{ inputs.cluster-name }}'
|
|
cluster-location: '${{ inputs.cluster-location }}'
|
|
|
|
- name: Deploy
|
|
shell: bash
|
|
run: node ./.github/actions/deploy/deploy.mjs
|