Skip to content

Commit

Permalink
publish invenio package v1
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Feb 23, 2024
1 parent 15417dd commit d9230d9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/publish-pending-packages.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ else
with e ->
failwith $"CreatePackage: [{i.RepoPath}]: failed with {System.Environment.NewLine}{e.Message}{System.Environment.NewLine}Package info:{System.Environment.NewLine}{AVPRClient.ValidationPackage.toJson p}"
try
printfn $"[{i.Metadata.Name}@{i.Metadata.MajorVersion}.{i.Metadata.MinorVersion}.{i.Metadata.PatchVersion}]: Publishing package content hash...{System.Environment.NewLine}"
printfn $"[{i.Metadata.Name}@{i.Metadata.MajorVersion}.{i.Metadata.MinorVersion}.{i.Metadata.PatchVersion}]: Publishing package content hash..."
client.CreatePackageContentHashAsync(
AVPRClient.PackageContentHash.createOfIndex(i)
)
Expand Down
26 changes: 21 additions & 5 deletions src/PackageRegistryService/Data/arc-validate-package-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,33 @@
{
"RepoPath": "src/PackageRegistryService/StagingArea/invenio/[email protected]",
"FileName": "[email protected]",
"LastUpdated": "2024-02-12T13:12:41+01:00",
"LastUpdated": "2024-02-23T16:09:20+01:00",
"Metadata": {
"Name": "invenio",
"Description": "Validates if the ARC contains the necessary metadata to be publishable via Invenio.\nThe following metadata is required:\n - Investigation has title and description\n - All persons in Investigation Contacts must have a name, last name, affiliation and valid email\n",
"MajorVersion": 1,
"MinorVersion": 0,
"PatchVersion": 0,
"Publish": false,
"Authors": [],
"Tags": [],
"ReleaseNotes": ""
"Publish": true,
"Authors": [
{
"FullName": "Oliver Maus",
"Email": "",
"Affiliation": "",
"AffiliationLink": ""
},
{
"FullName": "",
"Email": "",
"Affiliation": "DataPLANT",
"AffiliationLink": ""
}
],
"Tags": [
"ARC",
"data publication"
],
"ReleaseNotes": "Initial release"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ Description: |
MajorVersion: 1
MinorVersion: 0
PatchVersion: 0
Publish: true
Authors:
- FullName: Oliver Maus
- Affiliation: DataPLANT
Tags:
- ARC
- data publication
ReleaseNotes: "Initial release"
---
*)

Expand Down

0 comments on commit d9230d9

Please sign in to comment.