Skip to content

[CI] Publish nightly reduced data files#596

Open
MridulS wants to merge 2 commits into
mainfrom
reduced_data_nightly
Open

[CI] Publish nightly reduced data files#596
MridulS wants to merge 2 commits into
mainfrom
reduced_data_nightly

Conversation

@MridulS
Copy link
Copy Markdown
Member

@MridulS MridulS commented May 21, 2026

First step for #591

@github-actions github-actions Bot added the CI label May 21, 2026
@github-actions
Copy link
Copy Markdown

Hi! Your PR was missing some labels 🔖 so I added them: CI

@MridulS
Copy link
Copy Markdown
Member Author

MridulS commented May 21, 2026

Seems to work fine https://github.com/scipp/ess/releases/tag/reduced_data_nightly

Integrated and analysis tests can fetch the files from stable urls like https://github.com/scipp/ess/releases/download/reduced_data_nightly/dream_reduced.cif going forward.

@MridulS MridulS marked this pull request as ready for review May 21, 2026 15:00
permissions:
contents: write
steps:
- uses: actions/checkout@v6
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need to checkout here?

echo "Publishing ${#files[@]} file(s):"
printf ' %s\n' "${files[@]}"
gh release delete reduced_data_nightly --yes --cleanup-tag 2>/dev/null || true
gh release create reduced_data_nightly \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if we skip the delete step and just try to push new files to an existing release?
For example, when uploading the built docs as assets to a release, we use a different action that just add files to a release.
I wonder if you can replace files with that, and avoid having to create the release entirely (now that it has been created once)?

Copy link
Copy Markdown
Member

@nvaytet nvaytet May 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be an option for overwriting:
overwrite false If an asset with the same name already exists, overwrite it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another reason to maybe use the action to upload assets is that I seem to get a gh notification every time a release is made.

Just uploading would not add any noise to our inboxes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants