Skip to content

Commit 6bc4e63

Browse files
timsehnclaude
andcommitted
CI: build against master on manual runs; never publish on dispatch
doltlite's default branch is master (no 'main'), so a workflow_dispatch run (ref=main) failed to clone the engine. Use the release tag on tag pushes and master for manual smoke builds. Also gate the publish step to tag pushes only, so a manual build can't push a 'main'-versioned artifact now that the token is set. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7d3ac91 commit 6bc4e63

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
# Build against the matching doltlite engine ref. doltlite is public; a
20-
# plain anonymous clone avoids the cross-repo auth failure actions/checkout
21-
# hits with this repo's scoped GITHUB_TOKEN.
19+
# Build against the matching doltlite engine ref: the release tag on a tag
20+
# push, or master for a manual (workflow_dispatch) smoke build. doltlite is
21+
# public, so a plain anonymous clone avoids the cross-repo auth failure
22+
# actions/checkout hits with this repo's scoped GITHUB_TOKEN.
2223
- name: Checkout doltlite engine
23-
run: git clone --depth=1 --branch "${{ github.ref_name }}" https://github.com/dolthub/doltlite doltlite
24+
run: |
25+
ref="${{ github.ref_type == 'tag' && github.ref_name || 'master' }}"
26+
git clone --depth=1 --branch "$ref" https://github.com/dolthub/doltlite doltlite
2427
2528
- uses: actions/setup-java@v4
2629
with:
@@ -59,6 +62,7 @@ jobs:
5962
fi
6063
6164
- name: Publish to Maven Central
65+
if: github.event_name != 'workflow_dispatch'
6266
env:
6367
# The vanniktech plugin reads credentials + the in-memory signing key
6468
# from these ORG_GRADLE_PROJECT_* env vars.

0 commit comments

Comments
 (0)