Skip to content

[Documentation] Promote release baseline docs#111

Closed
JunchenMeteor wants to merge 2 commits into
releasefrom
main
Closed

[Documentation] Promote release baseline docs#111
JunchenMeteor wants to merge 2 commits into
releasefrom
main

Conversation

@JunchenMeteor

Copy link
Copy Markdown
Owner

Summary

Promote the release baseline documentation update from main into release.

Proposed Changes

  • Keep release branch docs aligned with v0.1.1 as the Tencent deployment baseline.

Test Plan

  • PR checks must pass before merge.

Add Tencent main/release deployment workflow, release docs, and release policy metadata.
Clarify v0.1.0 as the initial branch baseline and v0.1.1 as the Tencent deployment baseline.
@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meteortest Ready Ready Preview, Comment Jun 5, 2026 3:52pm

Comment on lines +16 to +75
name: Deploy Web
runs-on: [self-hosted, linux, x64, tencent, meteortest]
environment: tencent
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Resolve target
id: target
shell: bash
run: |
if [ "${GITHUB_REF_NAME}" = "release" ]; then
echo "app_dir=/srv/meteortest-release" >> "$GITHUB_OUTPUT"
echo "pm2_name=meteortest-release" >> "$GITHUB_OUTPUT"
echo "port=3300" >> "$GITHUB_OUTPUT"
else
echo "app_dir=/srv/meteortest" >> "$GITHUB_OUTPUT"
echo "pm2_name=meteortest-web" >> "$GITHUB_OUTPUT"
echo "port=3301" >> "$GITHUB_OUTPUT"
fi

- name: Deploy
shell: bash
run: |
retry() {
local attempts="$1"
local delay="$2"
shift 2

local attempt=1
until "$@"; do
if [ "$attempt" -ge "$attempts" ]; then
return 1
fi

echo "Command failed. Retrying in ${delay}s (${attempt}/${attempts})..."
sleep "$delay"
attempt=$((attempt + 1))
done
}

mkdir -p '${{ steps.target.outputs.app_dir }}'
rsync -a --delete \
--exclude '.git' \
--exclude 'apps/web/.next' \
--exclude 'apps/web/node_modules' \
./ '${{ steps.target.outputs.app_dir }}/'

cd '${{ steps.target.outputs.app_dir }}/apps/web'
retry 3 15 npm ci
set -a
. /etc/meteortest/meteortest-web.env
set +a
retry 2 15 npm run build

pm2 delete '${{ steps.target.outputs.pm2_name }}' || true
unset RUNNER_TRACKING_ID
pm2 start npm --name '${{ steps.target.outputs.pm2_name }}' -- run start -- --hostname 127.0.0.1 --port '${{ steps.target.outputs.port }}'
pm2 save
retry 12 5 curl -fsS 'http://127.0.0.1:${{ steps.target.outputs.port }}/' >/dev/null
@JunchenMeteor

Copy link
Copy Markdown
Owner Author

Closing because main-to-release promotion conflicts after squash history. Replacing with a release-based documentation branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants