From f650ee1e702f3f5bba27fda6d11507cd3462291b Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Tue, 28 Feb 2023 22:42:02 +0200 Subject: [PATCH 1/2] automate winget releases --- .github/workflows/winget-submission.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/winget-submission.yml diff --git a/.github/workflows/winget-submission.yml b/.github/workflows/winget-submission.yml new file mode 100644 index 00000000..d325945e --- /dev/null +++ b/.github/workflows/winget-submission.yml @@ -0,0 +1,25 @@ +name: Submit to Windows Package Manager Community Repository + +on: + release: + types: [released] + workflow_dispatch: + inputs: + tag_name: + description: "Specific tag name" + required: true + type: string + +jobs: + winget: + name: Publish winget package + runs-on: windows-latest + steps: + - name: Submit package to Windows Package Manager Community Repository + uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: th-ch.YouTubeMusic + version: ${{ inputs.tag_name || github.event.release.tag_name }} + release-tag: ${{ inputs.tag_name || github.event.release.tag_name }} + token: ${{ secrets.WINGET_ACC_TOKEN }} + fork-user: youtube-music-winget From f2d20d05c4ea1bee5abbbdbc15cda1e2ee0c3517 Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Tue, 28 Feb 2023 23:28:24 +0200 Subject: [PATCH 2/2] [winget] add installer regex --- .github/workflows/winget-submission.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/winget-submission.yml b/.github/workflows/winget-submission.yml index d325945e..89d5e4c1 100644 --- a/.github/workflows/winget-submission.yml +++ b/.github/workflows/winget-submission.yml @@ -19,6 +19,7 @@ jobs: uses: vedantmgoyal2009/winget-releaser@v2 with: identifier: th-ch.YouTubeMusic + installers-regex: '^YouTube-Music-Setup-[\d\.]+\.exe$' version: ${{ inputs.tag_name || github.event.release.tag_name }} release-tag: ${{ inputs.tag_name || github.event.release.tag_name }} token: ${{ secrets.WINGET_ACC_TOKEN }}