Skip to content

Fix: metadata#11

Merged
Sakura-Ex merged 4 commits into
mainfrom
fix/metadata
Feb 7, 2026
Merged

Fix: metadata#11
Sakura-Ex merged 4 commits into
mainfrom
fix/metadata

Conversation

@Sakura-Ex

Copy link
Copy Markdown
Owner

This pull request updates the release workflow and plugin metadata to align with recent packaging changes, ensuring that the correct files are included in releases and that metadata accurately reflects the new archive format.

Release workflow updates:

  • Changed the GitHub Actions workflow in .github/workflows/test.yml to use .pyz files instead of .mcdr files for release artifacts, and updated the release name to include the version.

Plugin metadata updates:

  • Added the archive_name field to mcdreforged.plugin.json to specify the new .pyz archive format.
  • Updated the resources list in mcdreforged.plugin.json to include __main__.py and LICENSE files.

- Add `archive_name` to `mcdreforged.plugin.json`
- Include `__main__.py` and `LICENSE` in resource list
- Add `archive_name` to `mcdreforged.plugin.json`
- Include `__main__.py` and `LICENSE` in resource list
@Sakura-Ex
Sakura-Ex marked this pull request as ready for review February 7, 2026 14:06
Copilot AI review requested due to automatic review settings February 7, 2026 14:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the plugin’s packaging metadata and the GitHub Actions release workflow to reflect a shift from .mcdr release artifacts to .pyz archives.

Changes:

  • Add archive_name to mcdreforged.plugin.json to name the packaged artifact as a .pyz.
  • Expand resources in mcdreforged.plugin.json to include __main__.py and LICENSE.
  • Update the release workflow to publish .pyz files and include the version in the release name.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
mcdreforged.plugin.json Adds .pyz archive naming and includes additional packaged resources.
.github/workflows/test.yml Changes release step to publish .pyz artifacts and sets a versioned release name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

tag_name: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || format('v{0}', env.VERSION) }}
files: package/*.mcdr
name: Sakura Flow ${{ env.VERSION }}
files: package/*.pyz

Copilot AI Feb 7, 2026

Copy link

Choose a reason for hiding this comment

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

The release job now attaches package/*.pyz, but the build job still uploads package/*.mcdr as the artifact. That means the downloaded artifact directory likely won’t contain any .pyz files and the release step will publish nothing or fail. Update the build job’s upload-artifact path (and any related expectations) to package/*.pyz (or keep the release step on .mcdr) so both stages agree on the artifact extension.

Suggested change
files: package/*.pyz
files: package/*.mcdr

Copilot uses AI. Check for mistakes.
- Update artifact path pattern from `*.mcdr` to `*.pyz` in build workflow to match the generated package extension defined in `mcdreforged.plugin.json`
@Sakura-Ex
Sakura-Ex merged commit db44ebd into main Feb 7, 2026
3 checks passed
@Sakura-Ex
Sakura-Ex deleted the fix/metadata branch February 7, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants