Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically create new release and create/attach add-on .zip on new tags (i.e. version bumps) #16

Open
8 tasks
jonmatthis opened this issue Aug 1, 2024 · 1 comment · May be fixed by #17
Open
8 tasks
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jonmatthis
Copy link
Member

Create a GH Action that:

  • On new tag
    • Create .zip from [repo-root]/freemocap_blender_addon/ folder
    • Create new Release (named v[VersionTag] Release or something)
    • Paste boiler plate instructions to Patch notes (see v1.3.0)
    • Auto generate Release notes

Bonus!

  • Create and run build tests, including:
    • Install .zip to blender via subporocess blender ... call
    • Process freemocap_test_data to produce a freemocap_test_data_processed_with_[VersionTag].blend file, and attach to the release
@jonmatthis
Copy link
Member Author

jonmatthis commented Aug 1, 2024

Current attempt (broken) - https://github.com/freemocap/freemocap_blender_addon/blob/main/.github/workflows/create_addon_install_zip.yaml

This GH Action is supposed to work, but it needs to pull the latest tag name for the release name, I think (will post error below)
Example of failed run: https://github.com/freemocap/freemocap_blender_addon/actions/runs/10182600886

Error:

Validation Failed: {"resource":"Release","code":"custom","field":"pre_receive","message":"pre_receive Sorry, branch or tag names consisting of 40 hex characters are not allowed."}, {"resource":"Release","code":"custom","message":"Published releases must have a valid tag"}

Presumably about Line 33 of the workflow .yml:

release_name: Release ${{ steps.get_tag.outputs.tag }}

@jonmatthis jonmatthis added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Aug 1, 2024
@philipqueen philipqueen linked a pull request Aug 1, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants