Skip to content

hotfix CI deployment#13

Merged
SilvioGiancola merged 2 commits into
mainfrom
dev-silvio
Apr 12, 2026
Merged

hotfix CI deployment#13
SilvioGiancola merged 2 commits into
mainfrom
dev-silvio

Conversation

@SilvioGiancola
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 12, 2026 05:34
@SilvioGiancola SilvioGiancola merged commit aff12a4 into main Apr 12, 2026
2 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Hotfix to ensure the standalone GUI build artifacts include loc_config.yaml and to adjust CI artifact zipping/upload behavior.

Changes:

  • Add loc_config.yaml to PyInstaller --add-data for Windows/macOS/Linux builds in CI and release workflows.
  • Remove workflow_dispatch-only gating for zip/upload steps in CI (artifacts now upload on branch pushes as well).

Reviewed changes

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

File Description
.github/workflows/release.yml Adds loc_config.yaml to packaged release assets across platforms (with a Windows separator issue to fix).
.github/workflows/ci.yml Adds loc_config.yaml to CI builds and changes zip/upload steps to run on all configured push events (plus a Windows separator issue to fix).
Comments suppressed due to low confidence (3)

.github/workflows/ci.yml:84

  • These steps are labeled "manual runs only" but the if: github.event_name == 'workflow_dispatch' guard was removed, so they will now run (and upload artifacts) on every push to the configured branches. Either restore the if condition or update the step names/logic to reflect the new behavior to avoid confusion and unintended CI uploads.
      - name: Zip Windows binary (manual runs only)
        shell: pwsh
        run: |
          Move-Item -Force dist\VideoAnnotationTool.exe dist\VideoAnnotationTool-win.exe
          Compress-Archive -Path dist\VideoAnnotationTool-win.exe -DestinationPath dist\VideoAnnotationTool-win.zip -Force

      - name: Upload artifact (manual runs only)
        uses: actions/upload-artifact@v4
        with:
          name: VideoAnnotationTool-Windows
          path: annotation_tool/dist/VideoAnnotationTool-win.zip
          retention-days: 3

.github/workflows/ci.yml:146

  • These steps are labeled "manual runs only" but the if: github.event_name == 'workflow_dispatch' guard was removed, so they will now run (and upload artifacts) on every push to the configured branches. Either restore the if condition or update the step names/logic to reflect the new behavior to avoid confusion and unintended CI uploads.
      - name: Zip macOS app (manual runs only)
        shell: bash
        run: |
          ditto -c -k --sequesterRsrc --keepParent "dist/VideoAnnotationTool.app" "dist/VideoAnnotationTool-mac.zip"

      - name: Upload artifact (manual runs only)
        uses: actions/upload-artifact@v4
        with:
          name: VideoAnnotationTool-macOS
          path: annotation_tool/dist/VideoAnnotationTool-mac.zip
          retention-days: 3

.github/workflows/ci.yml:217

  • These steps are labeled "manual runs only" but the if: github.event_name == 'workflow_dispatch' guard was removed, so they will now run (and upload artifacts) on every push to the configured branches. Either restore the if condition or update the step names/logic to reflect the new behavior to avoid confusion and unintended CI uploads.
      - name: Zip Linux binary (manual runs only)
        shell: bash
        run: |
          mv -f dist/VideoAnnotationTool dist/VideoAnnotationTool-linux
          cd dist
          zip -r VideoAnnotationTool-linux.zip VideoAnnotationTool-linux
          cd ..

      - name: Upload artifact (manual runs only)
        uses: actions/upload-artifact@v4
        with:
          name: VideoAnnotationTool-Linux
          path: annotation_tool/dist/VideoAnnotationTool-linux.zip
          retention-days: 3

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

Comment thread .github/workflows/ci.yml
--add-data "controllers;controllers"
--add-data "image;image"
--add-data "config.yaml;."
--add-data "loc_config.yaml:."
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

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

On Windows, PyInstaller expects --add-data paths to be separated with ; (as used in the other --add-data entries in this step). Using : here will treat the value as a single path and can break packaging. Please change this to use ; for the source/destination separator (e.g., keep it consistent with config.yaml;.).

Suggested change
--add-data "loc_config.yaml:."
--add-data "loc_config.yaml;."

Copilot uses AI. Check for mistakes.
--add-data "controllers;controllers"
--add-data "image;image"
--add-data "config.yaml;."
--add-data "loc_config.yaml:."
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

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

On Windows, PyInstaller expects --add-data paths to be separated with ; (as used in the other --add-data entries in this step). Using : here will treat the value as a single path and can break packaging. Please change this to use ; for the source/destination separator (e.g., keep it consistent with config.yaml;.).

Suggested change
--add-data "loc_config.yaml:."
--add-data "loc_config.yaml;."

Copilot uses AI. Check for mistakes.
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