mirror of
https://github.com/apple/pkl.git
synced 2026-08-27 06:04:03 +02:00
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:
@@ -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/**/*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -16,7 +16,7 @@ steps {
|
||||
catalog.`actions/checkout@v6`
|
||||
(catalog.`actions/download-artifact@v6`) {
|
||||
with {
|
||||
pattern = "executable-**"
|
||||
pattern = "deploy-artifacts-**"
|
||||
`merge-multiple` = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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/*
|
||||
"""#
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user