-
Notifications
You must be signed in to change notification settings - Fork 56
Winget manifest uploader #620
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
SteveL-MSFT
merged 27 commits into
PowerShell:main
from
Gijsreyn:winget-manifest-uploader
Sep 2, 2025
Merged
Changes from 14 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2979a2c
Create function to submit WinGet manifest
90a5c5a
Create function to submit WinGet manifest
51ba698
Merge branch 'winget-manifest-uploader' of https://github.com/Gijsrey…
Gijsreyn 1e51cc0
Merge branch 'main' of https://github.com/Gijsreyn/operation-methods …
Gijsreyn 0447293
Remove unnecessary line
Gijsreyn 69c7684
Resolve merge conflicts
Gijsreyn 1ca6e8d
Support two versions
Gijsreyn a9a03ba
Merge branch 'main' into winget-manifest-uploader
Gijsreyn e5f3d29
Rebuild with workflow
Gijsreyn 2803a35
Merge branch 'winget-manifest-uploader' of https://github.com/Gijsrey…
Gijsreyn 4b7c7f7
Update workflow file
Gijsreyn ad3b597
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 2134168
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 979c718
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 41af3bd
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 484d6e8
Remove function call
Gijsreyn 4490a8d
Revert changes in PS script
Gijsreyn 68c7061
Revert changes in PS script
Gijsreyn f82c7b2
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 916336f
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 974289b
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 1e0fd14
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 92e83fd
Apply suggestion Muhammad
Gijsreyn 3785931
Resolve remarks
Gijsreyn afde652
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 258501e
Merge branch 'main' into winget-manifest-uploader
Gijsreyn b5614a7
Merge branch 'main' into winget-manifest-uploader
Gijsreyn 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,27 @@ | ||
| name: Publish to Winget | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
|
|
||
|
|
||
| env: | ||
| REGEX: 'DSC-(\d+\.\d+\.\d+(?:-preview\.\d+)?)-(?:x86_64|aarch64)-pc-windows-msvc\.zip' | ||
Gijsreyn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: windows-latest # Action can only run on Windows | ||
| steps: | ||
Gijsreyn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Publish Microsoft.DSC ${{ github.event.release.prerelease && 'Preview' || 'Stable' }} | ||
Gijsreyn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| run: | | ||
| $assets = '${{ toJSON(github.event.release.assets) }}' | ConvertFrom-Json | ||
| $wingetRelevantAsset = $assets | Where-Object { $_.name -like '*.zip' -and $_.name -like '*.msixbundle' } | Select-Object -First 1 | ||
Gijsreyn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Gijsreyn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| $regex = [Regex]::New($env:REGEX) | ||
| $version = $regex.Match($wingetRelevantAsset.name).Groups[1].Value | ||
Gijsreyn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| $wingetPackage = "Microsoft.DSC${{ github.event.release.prerelease && '.Preview' || '' }}" | ||
Gijsreyn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| & curl.exe -JLO https://aka.ms/wingetcreate/latest | ||
| & .\wingetcreate.exe update $wingetPackage -s -v $version -u $wingetRelevantAsset.browser_download_url -t "${{ secrets.WINGET_TOKEN }}" | ||
Gijsreyn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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
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.
Uh oh!
There was an error while loading. Please reload this page.