Data Request API helper #10

Merged
Oliver merged 94 commits from feat/data-requests into main 2025-11-22 02:51:15 +00:00
2 changed files with 15 additions and 15 deletions
Showing only changes of commit 9e3bc775b4 - Show all commits

View file

@ -0,0 +1,14 @@
on:
release:
types: [published]
jobs:
undraft-on-github:
runs-on: docker
steps:
- name: copy release description to github
- name: publish github release
release-to-foundry:
runs-on: docker
steps:
- name: retrieve release URLS
- name: publish to Foundry

View file

@ -42,21 +42,7 @@ async function main() {
await addReleaseAsset(release.data.id, `release.zip`); await addReleaseAsset(release.data.id, `release.zip`);
await addReleaseAsset(release.data.id, `system.json`); await addReleaseAsset(release.data.id, `system.json`);
} catch (e) { } catch (e) {
console.error(`Failed to upload files, deleting draft release`); console.error(`Failed to add assets to the release`);
console.error(e);
try {
await axios.delete(
`${API}/repos/${REPO}/releases/${release.data.id}`,
{
headers: { Authorization: `token ${TOKEN}` },
}
)
} catch {
console.error(`Failed to delete draft release`);
};
process.exit(1);
}; };
console.log(`Release created, and files uploaded successfully!`); console.log(`Release created, and files uploaded successfully!`);