Skip to content

Add label-gated auto-release workflow for merged PRs#6

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/feature-auto-release-action
Draft

Add label-gated auto-release workflow for merged PRs#6
Copilot wants to merge 4 commits into
mainfrom
copilot/feature-auto-release-action

Conversation

Copy link
Copy Markdown

Copilot AI commented May 9, 2026

This PR implements automated multi-platform release publishing from GitHub Actions. When a PR labeled release is merged into main, CI now builds release artifacts across project targets and publishes a GitHub Release using the repository version.

  • Trigger + guardrails

    • Added .github/workflows/auto-release.yml on pull_request.closed.
    • Release pipeline runs only if:
      • PR is merged
      • base branch is main
      • PR has release label
    • Added workflow-level concurrency keyed by PR number.
  • Version resolution

    • Reads release version from mobile/android/app/build.gradle.kts (versionName).
    • Falls back to desktop/pubspec.yaml (version:) if Android version is unavailable.
    • Emits explicit failure diagnostics when version extraction fails.
  • Cross-platform build + artifact packaging

    • Reuses existing build patterns to produce:
      • API JAR
      • Web build archive (web-dist.zip)
      • Desktop macOS archive
      • Desktop Windows archive
      • Android release APK
    • Pins Flutter in release workflow (flutter-version: 3.35.x) for reproducibility.
  • Release publication

    • Downloads all produced artifacts in a final release job.
    • Publishes GitHub Release via softprops/action-gh-release@v2 with:
      • tag v<version>
      • release name Release v<version>
      • generated release notes
      • attached build artifacts
  • Docs

    • Updated README.md CI/workflow section to include auto-release.yml and describe its trigger condition.
if: >-
  github.event.pull_request.merged == true &&
  github.event.pull_request.base.ref == 'main' &&
  contains(github.event.pull_request.labels.*.name, 'release')

Copilot AI linked an issue May 9, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add GitHub Action for auto release builds Add label-gated auto-release workflow for merged PRs May 9, 2026
Copilot AI requested a review from Ksuserkqy May 9, 2026 07:17
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.

Feature Request: Auto Release

2 participants