Skip to content

Commit ce66da6

Browse files
committed
feat: Add function to load signatures from JSON file
1 parent 8139e4c commit ce66da6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,15 @@ jobs:
504504
}
505505
}
506506
507+
func loadSignatures() -> [String: String] {
508+
guard let data = try? Data(contentsOf: URL(fileURLWithPath: "dist/signatures.json")),
509+
let signatures = try? JSONSerialization.jsonObject(with: data) as? [String: String] else {
510+
print("⚠️ No signatures found")
511+
return [:]
512+
}
513+
return signatures
514+
}
515+
507516
// Fetch releases from GitHub API
508517
let url = URL(string: "https://api.github.com/repos/${{ github.repository }}/releases")!
509518
let task = URLSession.shared.dataTask(with: url) { data, response, error in

0 commit comments

Comments
 (0)