mirror of
https://github.com/apple/pkl.git
synced 2026-08-27 14:14:02 +02:00
* 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.
42 lines
996 B
Plaintext
42 lines
996 B
Plaintext
module GithubRelease
|
|
|
|
extends "PklJob.pkl"
|
|
|
|
import "@gha/catalog.pkl"
|
|
import "@gha/context.pkl"
|
|
|
|
fixed job {
|
|
`runs-on` = "ubuntu-latest"
|
|
permissions {
|
|
contents = "write"
|
|
}
|
|
needs = "deploy-release"
|
|
steps {
|
|
(catalog.`actions/download-artifact@v6`) {
|
|
with {
|
|
pattern = "deploy-artifacts-**"
|
|
`merge-multiple` = true
|
|
}
|
|
}
|
|
new {
|
|
name = "Publish release on GitHub"
|
|
env {
|
|
["GH_TOKEN"] = context.github.token
|
|
["TAG_NAME"] = context.github.refName
|
|
["GIT_SHA"] = context.github.sha
|
|
["GH_REPO"] = context.github.repository
|
|
}
|
|
// language=bash
|
|
run =
|
|
#"""
|
|
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/distributions/*
|
|
"""#
|
|
}
|
|
}
|
|
}
|