Fix deploy build (#1798)

* Fix issue where the DeployJob and GithubRelease jobs download
  artifacts using a glob that only matches one artifact
* Make NativeImageBuild task only produce outputs as declared by build;
  ensure there's no build_artifacts.txt, sources/ dir, etc.
This commit is contained in:
Daniel Chao
2026-07-28 20:42:50 +00:00
committed by GitHub
parent be03023499
commit 79dd95c4e6
10 changed files with 115 additions and 98 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ steps {
(catalog.`actions/upload-artifact@v5`) {
name = "Upload executable artifacts"
with {
name = "executable-java"
name = "deploy-artifacts-java-executables"
path = "*/build/executable/**/*"
}
}
+2 -2
View File
@@ -60,9 +60,9 @@ steps {
with {
name =
if (musl)
"artifacts-\(project)-alpine-\(module.os)-\(module.arch)"
"deploy-artifacts-\(project)-alpine-\(module.os)-\(module.arch)"
else
"artifacts-\(project)-\(module.os)-\(module.arch)"
"deploy-artifacts-\(project)-\(module.os)-\(module.arch)"
// Need to insert a wildcard to make actions/upload-artifact preserve the folder hierarchy.
// See https://github.com/actions/upload-artifact/issues/206
path = module.buildDir
+1 -1
View File
@@ -16,7 +16,7 @@ steps {
catalog.`actions/checkout@v6`
(catalog.`actions/download-artifact@v6`) {
with {
pattern = "executable-**"
pattern = "deploy-artifacts-**"
`merge-multiple` = true
}
}
+2 -5
View File
@@ -14,7 +14,7 @@ fixed job {
steps {
(catalog.`actions/download-artifact@v6`) {
with {
pattern = "executable-**"
pattern = "deploy-artifacts-**"
`merge-multiple` = true
}
}
@@ -29,15 +29,12 @@ fixed job {
// language=bash
run =
#"""
# exclude build_artifacts.txt from publish
rm -f */build/executable/*.build_artifacts.txt
find */build/executable/* -type d | xargs rm -rf
gh release create ${TAG_NAME} \
--title "${TAG_NAME}" \
--target "${GIT_SHA}" \
--verify-tag \
--notes "Release notes: https://pkl-lang.org/main/current/release-notes/changelog.html#release-${TAG_NAME}" \
*/build/executable/*
*/build/executable/* */build/distributions/*
"""#
}
}