diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9b3589..7eef034 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [main, development] + branches: [main] pull_request: - branches: [main, development] + branches: [main] workflow_call: concurrency: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 77fb5ba..c7eb8e1 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,7 +1,7 @@ name: Docker on: push: - branches: [main, development] + branches: [main] tags: ["v*"] pull_request: paths: ["Dockerfile", "docker-compose.yml", ".dockerignore"] diff --git a/.github/workflows/merge-gate.yml b/.github/workflows/merge-gate.yml deleted file mode 100644 index ace7c31..0000000 --- a/.github/workflows/merge-gate.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Merge Gate - -on: - pull_request: - branches: [main] - -jobs: - enforce-source-branch: - runs-on: ubuntu-latest - steps: - - name: Verify PR source is development or release-please branch - run: | - HEAD="${{ github.head_ref }}" - if [ "$HEAD" = "development" ] || [[ "$HEAD" == release-please--* ]]; then - echo "✅ Source branch '$HEAD' — merge allowed." - else - echo "::error::Only the 'development' branch (or release-please branches) can be merged into main. This PR is from '$HEAD'." - exit 1 - fi diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index af8c40f..b702a66 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -41,3 +41,11 @@ jobs: - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + deploy-docs: + runs-on: ubuntu-latest + needs: release-please + if: ${{ needs.release-please.outputs.release_created }} + steps: + - name: Trigger Vercel docs deployment + run: curl -X POST "${{ secrets.VERCEL_DOCS_DEPLOY_HOOK }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 3efe2fd..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Release - -on: - push: - tags: - - "v*.*.*" - -permissions: - contents: write - -jobs: - ci: - uses: ./.github/workflows/ci.yml - - github-release: - runs-on: ubuntu-latest - needs: ci - steps: - - uses: actions/checkout@v6 - - name: Create GitHub Release - uses: softprops/action-gh-release@v2 - with: - generate_release_notes: true diff --git a/docs/vercel.json b/docs/vercel.json index 4357264..412b62c 100644 --- a/docs/vercel.json +++ b/docs/vercel.json @@ -1,5 +1,5 @@ { - "ignoreCommand": "git diff --quiet HEAD^ HEAD -- . ../package.json", + "ignoreCommand": "exit 0", "installCommand": "cd .. && npm install --include=dev --ignore-scripts", "buildCommand": "cd .. && npx vitepress build docs", "outputDirectory": ".vitepress/dist"