diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml deleted file mode 100644 index f5b4f38b..00000000 --- a/.github/workflows/automerge.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: automerge - -# Opt-in merging (hive rule 2026-10-01): nothing merges without an inspector verdict. -# This workflow now runs only when started by hand (workflow_dispatch) for a named -# branch; it no longer fires on every push. Former behavior: any push to a non-main branch got built, got a PR -# opened against main if none exists, and is merged once the build passes. -# This keeps work flowing to main instead of leaving branches unmerged. -on: - workflow_dispatch: - inputs: - branch: - description: "branch to build and merge (only after an inspector VERDICT merge)" - required: true - -permissions: - contents: write - pull-requests: write - -# Serialize merges into main so concurrent branch pushes can't race. -concurrency: - group: automerge-main - cancel-in-progress: false - -jobs: - build-and-merge: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ inputs.branch }} - fetch-depth: 0 - - name: Refresh facts from the public GitHub record - env: - GH_TOKEN: ${{ github.token }} - run: cargo run --release --manifest-path crates/site-builder/Cargo.toml -- facts facts.json - - name: Run verification test suite - run: cargo test --verbose --manifest-path crates/site-builder/Cargo.toml - - name: Build static site with pure Rust engine - run: cargo run --release --manifest-path crates/site-builder/Cargo.toml -- build dist - - name: Open PR and merge into main - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - set -euo pipefail - BRANCH="${{ inputs.branch }}" - PR_NUMBER="$(gh pr list --head "$BRANCH" --base main --json number --jq '.[0].number // empty')" - if [ -z "$PR_NUMBER" ]; then - PR_URL="$(gh pr create --base main --head "$BRANCH" \ - --title "Auto-merge: $BRANCH" \ - --body "Opened automatically by the automerge pipeline after a successful build of \`$BRANCH\`.")" - PR_NUMBER="${PR_URL##*/}" - echo "Opened PR #$PR_NUMBER ($PR_URL)" - else - echo "Found existing PR #$PR_NUMBER" - fi - gh pr merge "$PR_NUMBER" --squash --delete-branch - echo "Merged PR #$PR_NUMBER into main" diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e4181c3a..cf925fbc 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,12 +1,12 @@ name: pages +# Builds and deploys www.aienos.com. No tests run on GitHub-hosted runners (2026-10-18): +# site-builder tests run on the Spark, and pull requests get no hosted build. on: schedule: - cron: "17 * * * *" workflow_dispatch: push: branches: [main] - pull_request: - branches: [main] permissions: contents: read pages: write @@ -20,7 +20,6 @@ jobs: steps: - uses: actions/checkout@v4 - name: Collect public project history - if: github.event_name != 'pull_request' env: GH_TOKEN: ${{ github.token }} run: cargo run --release --manifest-path crates/site-builder/Cargo.toml -- progress public/data/project-progress.json @@ -28,8 +27,6 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: cargo run --release --manifest-path crates/site-builder/Cargo.toml -- facts facts.json - - name: Run verification test suite - run: cargo test --verbose --manifest-path crates/site-builder/Cargo.toml - name: Build static site with pure Rust engine run: cargo run --release --manifest-path crates/site-builder/Cargo.toml -- build dist - name: Upload Pages artifact