Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

ci: switch branching to main+release, drop dev branch

Adam Eivyfb4603776e03
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c5d79a6374..609132f698 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,9 +2,9 @@ name: CI
on:
pull_request:
- branches: [main, dev]
+ branches: [main, release]
push:
- branches: [dev]
+ branches: [main]
permissions:
contents: read
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4b23bd4d00..f4a16abd7c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -2,7 +2,7 @@ name: Release
on:
push:
- branches: [main]
+ branches: [release]
permissions:
contents: write
@@ -100,7 +100,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: Archive changelog and sync dev
+ - name: Archive changelog and sync main
if: steps.tag-check.outputs.exists == 'false'
run: |
# Get current version (the one we just released)
@@ -109,27 +109,24 @@ jobs:
MINOR=$(echo $CURRENT_VERSION | cut -d. -f2)
MAJOR_MINOR="$MAJOR.$MINOR"
- # Archive changelog on main first (single source of truth)
- # This avoids cherry-pick divergence that causes merge conflicts on the next PR
+ # Archive changelog on release branch first
PATTERN_FILE=".changelog/v${MAJOR_MINOR}.x.md"
VERSIONED_FILE=".changelog/v${CURRENT_VERSION}.md"
if [ -f "$PATTERN_FILE" ]; then
- # Rename and version the changelog file on main
git mv "$PATTERN_FILE" "$VERSIONED_FILE"
- # Replace version placeholders in the renamed file
sed -i.bak "s/v${MAJOR_MINOR}\.x/v${CURRENT_VERSION}/g; s/${MAJOR_MINOR}\.x/${CURRENT_VERSION}/g; s/YYYY-MM-DD/$(date +%Y-%m-%d)/g" "$VERSIONED_FILE"
rm "${VERSIONED_FILE}.bak"
git add "$VERSIONED_FILE"
git commit -m "docs: archive changelog for v${CURRENT_VERSION} [skip ci]"
- git push origin main
+ git push origin release
fi
- # Checkout dev and merge main to share the changelog commit history
- git fetch origin dev
- git checkout dev
+ # Checkout main and merge release to share the changelog archive
git fetch origin main
- git merge origin/main -m "merge: incorporate v${CURRENT_VERSION} changelog archive [skip ci]"
- git push origin dev
+ git checkout main
+ git fetch origin release
+ git merge origin/release -m "merge: incorporate v${CURRENT_VERSION} changelog archive [skip ci]"
+ git push origin main