Skip to content

Reduced release workflow complexity, added conditional image upload#832

Merged
danditomaso merged 1 commit into
meshtastic:mainfrom
danditomaso:fix/release-gh-fixes
Sep 3, 2025
Merged

Reduced release workflow complexity, added conditional image upload#832
danditomaso merged 1 commit into
meshtastic:mainfrom
danditomaso:fix/release-gh-fixes

Conversation

@danditomaso

Copy link
Copy Markdown
Collaborator

Description

This pull request updates the release-web.yml GitHub Actions workflow to streamline the build and release process for the web app. The main changes remove redundant build steps, simplify image tag computation, and clarify output messaging based on the release type.

Workflow simplification and reliability:

  • Removed a redundant pnpm run build step in the web package to avoid unnecessary duplicate builds.
  • Simplified Docker image tag computation by directly specifying tags as latest,${{ steps.meta.outputs.tag }} in the buildah-build step, and removed the custom Compute image tags step.

Conditional release behavior:

  • Added conditions to only push container images and output the image URL when the workflow is triggered by a non-prerelease GitHub release event, ensuring prereleases or manual runs do not publish images. [1] [2]
  • Added a new step to output a clear message when no image is pushed, improving transparency for prerelease or manual workflow runs.

Checklist

  • Code follows project style guidelines
  • Documentation has been updated or added
  • Tests have been added or updated
  • All i18n translation labels have been added (read
    CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)

Copilot AI review requested due to automatic review settings September 3, 2025 21:04
@vercel

vercel Bot commented Sep 3, 2025

Copy link
Copy Markdown

@danditomaso is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 simplifies the web release workflow by removing redundant build steps and adding conditional image publishing. The changes ensure that container images are only pushed to the registry for non-prerelease GitHub releases, while maintaining build functionality for all workflow triggers.

Key changes:

  • Removed duplicate pnpm run build step to eliminate redundant operations
  • Simplified Docker image tagging by removing custom tag computation logic
  • Added conditional publishing that only pushes images for non-prerelease releases

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .github/workflows/release-web.yml
@danditomaso danditomaso requested a review from philon- September 3, 2025 21:09
@danditomaso danditomaso merged commit 799283f into meshtastic:main Sep 3, 2025
2 of 3 checks passed
@danditomaso danditomaso deleted the fix/release-gh-fixes branch September 3, 2025 21:09
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