-
-
Notifications
You must be signed in to change notification settings - Fork 3
Fix/release publish #21
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: ✅ Auto-Merge Release PR | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
| contents: write | ||
|
|
||
| jobs: | ||
| auto-merge: | ||
| name: Auto-Merge Release PR | ||
| runs-on: ubuntu-latest | ||
| if: | | ||
| contains(github.head_ref, 'fix/release') || | ||
| contains(github.head_ref, 'chore/release') || | ||
| github.event.pull_request.title == 'ci(release): make release draft, upload assets, then publish' | ||
| steps: | ||
| - name: 🔍 Wait for CI to pass | ||
| uses: lewagon/wait-on-check-action@v1.3.1 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
| wait-interval: 10 | ||
| allowed-conclusions: success | ||
|
|
||
| - name: 🟢 Enable auto-merge | ||
| uses: peter-evans/enable-pull-request-automerge@v3 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| pull-request-number: ${{ github.event.pull_request.number }} | ||
| merge-method: squash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # 📋 Release & WinGet Update Flow | ||
|
|
||
| ## Alur Otomatis | ||
|
|
||
| ``` | ||
| 1. User jalankan: .\Scripts\release-version.ps1 -NewVersion X.X.X | ||
| ↓ | ||
| 2. Script push tag vX.X.X | ||
| ↓ | ||
| 3. build-release.yml trigger | ||
| ├─ Build app | ||
| ├─ Create Release (DRAFT) | ||
| ├─ Upload assets | ||
| └─ Publish Release (auto-triggered) | ||
| ↓ | ||
| 4. winget-releaser.yml trigger (saat Release di-publish) | ||
| ├─ Pull dari faizinuha/winget-pkgs | ||
| ├─ Update manifest versi terbaru | ||
| └─ Submit PR ke microsoft/winget-pkgs | ||
| ↓ | ||
| 5. 🤖 Auto-Merge PR di ZeroMix (fix/release-publish) | ||
| ├─ Tunggu CI lulus | ||
| └─ Auto-squash merge ke main | ||
| ↓ | ||
| 6. 📥 Microsoft review PR (~1-3 hari kerja) | ||
| ├─ Auto-merge di microsoft/winget-pkgs | ||
| └─ (atau manual review → merge) | ||
| ↓ | ||
| 7. ✅ User bisa: winget install Zeromix.ZeroMix | ||
| ``` | ||
|
|
||
| ## Key Points | ||
|
|
||
| - **release-version.ps1** → Update versi, commit, push tag | ||
| - **build-release.yml** → Build, upload, publish (tidak race condition lagi) | ||
| - **winget-releaser.yml** → Auto-submit PR ke WinGet (vedantmgoyal9 action) | ||
| - **auto-merge-release.yml** → Auto-merge fix/release-* PR di ZeroMix | ||
| - **WINGET_ACC_TOKEN** → GitHub PAT untuk fork faizinuha/winget-pkgs | ||
|
|
||
| ## PR Microsoft WinGet | ||
|
|
||
| PR yang di-submit vedantmgoyal9/winget-releaser ke microsoft/winget-pkgs perlu di-approve Microsoft. | ||
| Bisa monitor di: https://github.com/microsoft/winget-pkgs/pulls | ||
|
|
||
| Kalo ada issue, microsoft akan comment di PR. WinGet bot team biasanya fast-respond. | ||
|
|
||
| ## Test Release | ||
|
|
||
| Dry-run dulu: | ||
| ```powershell | ||
| .\Scripts\release-version.ps1 -NewVersion X.X.X -DryRun | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ``` | ||
|
|
||
| Kalo OK, jalankan beneran: | ||
| ```powershell | ||
| .\Scripts\release-version.ps1 -NewVersion X.X.X | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ``` | ||
|
|
||
| Terus monitor di Actions → kelilingi workflow runner sampai winget-releaser submit PR. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter name in
Scripts/release-version.ps1is-Version, not-NewVersion. Using-NewVersionwill cause the script to fail as the parameter does not exist.