Skip to content

Commit c008906

Browse files
committed
chore: add upload of release artifacts to GitHub releases
1 parent bebcf08 commit c008906

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/main.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,28 @@
599599
"if": "matrix.host.upload",
600600
"name": "Push container sync_jwks_to_configmap:sync_jwks_to_configmap",
601601
"run": "bazel run --stamp //cmd/sync_jwks_to_configmap:sync_jwks_to_configmap_container_push"
602-
}
602+
},
603+
{
604+
"if": "matrix.host.upload",
605+
"name": "Download release artifacts",
606+
"uses": "actions/download-artifact@v4",
607+
"with": {
608+
"merge-multiple": true
609+
}
610+
},
611+
{
612+
"if": "matrix.host.upload",
613+
"name": "Calculate shasum",
614+
"run": "shasum -a 256 assets/* > sha256"
615+
},
616+
{
617+
"if": "matrix.host.upload",
618+
"name": "Create GitHub draft release and upload artifacts",
619+
"uses": "softprops/action-gh-release@v2",
620+
"with": {
621+
"files": [ "assets/*", "sha256" ]
622+
}
623+
},
603624
],
604625
"strategy": {
605626
"matrix": {

0 commit comments

Comments
 (0)