Skip to content

Commit 4930fac

Browse files
committed
chore: build all artifacts for custom releases
This PR enables the build of all artifacts for custom releases, e.g., releases outside the main lean4 repository. This resolves #8333.
1 parent 8807893 commit 4930fac

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ jobs:
103103
echo "Tag ${TAG_NAME} did not match SemVer regex."
104104
fi
105105
106+
- name: Check for custom releases (e.g., not in the main lean repository)
107+
if: startsWith(github.ref, 'refs/tags/') && github.repository != 'leanprover/lean4'
108+
id: set-release-custom
109+
run: |
110+
TAG_NAME="${GITHUB_REF##*/}"
111+
echo "RELEASE_TAG=$TAG_NAME" >> "$GITHUB_OUTPUT"
112+
106113
- name: Set check level
107114
id: set-level
108115
# We do not use github.event.pull_request.labels.*.name here because
@@ -111,7 +118,7 @@ jobs:
111118
run: |
112119
check_level=0
113120
114-
if [[ -n "${{ steps.set-nightly.outputs.nightly }}" || -n "${{ steps.set-release.outputs.RELEASE_TAG }}" ]]; then
121+
if [[ -n "${{ steps.set-nightly.outputs.nightly }}" || -n "${{ steps.set-release.outputs.RELEASE_TAG }}" || -n "${{ steps.set-release-custom.outputs.RELEASE_TAG }}" ]]; then
115122
check_level=2
116123
elif [[ "${{ github.event_name }}" != "pull_request" ]]; then
117124
check_level=1

0 commit comments

Comments
 (0)