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
+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/*
"""#
}
}