diff --git a/system/upgrade_github_application.yaml b/system/upgrade_github_application.yaml index 38bea8e..70a5991 100644 --- a/system/upgrade_github_application.yaml +++ b/system/upgrade_github_application.yaml @@ -30,6 +30,9 @@ tasks: value: '$(settings.os_family)-$(settings.architecture).tar.gz' - varName: "sha256_file" value: '$(settings.name)_$(trimPrefix(tag_name,"v"))_$(settings.os_family)-$(settings.architecture).sha256' + - varName: "sha256_package_file" + value: '$(settings.os_family)-$(settings.architecture).sha256' + - loadVariables: description: "Load variables for $(settings.name)" @@ -84,6 +87,17 @@ tasks: - "$(tempdir())/$(archive_file)" - "@(git)/api/packages/public/generic/$(settings.name)/$(new_version)/$(package_file)" + - execute: + description: "Upload checksum $(sha256_file)" + exec: "curl" + args: + - "-sS" + - "--user" + - "$(decrypt(gitUsername,keyfile)):$(decrypt(gitPassword,keyfile))" + - "--upload-file" + - "$(tempdir())/$(sha256_file)" + - "@(git)/api/packages/public/generic/$(settings.name)/$(new_version)/$(sha256_package_file)" + # - execute: # description: "Upload application $(archive_file)" # exec: "mc"