From e727e53770d7eda0d834a8fc8239a96fc586d241 Mon Sep 17 00:00:00 2001 From: Ryan Caezar Itang Date: Thu, 2 Mar 2023 11:10:18 +0800 Subject: [PATCH 1/6] Add Winget Releaser workflow Signed-off-by: Ryan Caezar Itang --- .github/workflows/winget.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/winget.yml diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml new file mode 100644 index 0000000..b7be9fb --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,19 @@ +name: Publish to Winget +on: + release: + types: [released] + +jobs: + publish: + runs-on: windows-latest # Action can only run on Windows + steps: + - name: Extract version from tag + id: extract_version + run: | + $version = "${{ github.event.release.tag_name }}" -replace "v(\d+)\.(?:0*(\d+))-(\d+)", '$1.$2.$3' + Write-Output "version=$version" >> $GITHUB_OUTPUT + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: daynix.UsbDk + version: ${{ steps.extract_version.outputs.version }} + token: ${{ secrets.WINGET_TOKEN }} From 98e56f524fe887340f4b13c8300629a5a12ae7e4 Mon Sep 17 00:00:00 2001 From: Ryan Caezar Itang Date: Thu, 2 Mar 2023 11:10:46 +0800 Subject: [PATCH 2/6] Add Dependabot Signed-off-by: Ryan Caezar Itang --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9f30839 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" From f95a64689f697be73accb53925a492a4cc4049a3 Mon Sep 17 00:00:00 2001 From: Ryan Caezar Itang Date: Thu, 2 Mar 2023 11:11:02 +0800 Subject: [PATCH 3/6] Add Winget install instructions in the readme Signed-off-by: Ryan Caezar Itang --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index f8317f1..23e0e16 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,11 @@ desired configuration. ## Installing and running +UsbDk can be installed via Winget: +``` +winget install daynix.UsbDk +``` + Use UsbDkController.exe to install/uninstall and verify basic operation. Run UsbDkController.exe without parameters for command line options. From d7a9e402f59a464c640b59a85a73deded197f4af Mon Sep 17 00:00:00 2001 From: sitiom Date: Tue, 4 Apr 2023 21:10:47 +0800 Subject: [PATCH 4/6] Update README.md Co-authored-by: Viktor Prutyanov Signed-off-by: sitiom --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 23e0e16..6fb30f7 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ desired configuration. ## Installing and running -UsbDk can be installed via Winget: +UsbDk can be installed via Winget on desktop Windows: ``` winget install daynix.UsbDk ``` From c1e7580049b73c31f65f2d9b952f7977ca28fc72 Mon Sep 17 00:00:00 2001 From: sitiom Date: Thu, 17 Aug 2023 14:47:43 +0800 Subject: [PATCH 5/6] Change Winget Releaser job to `ubuntu-latest` Winget Releaser now supports non-Windows runners, and `ubuntu-latest` is generally faster. Signed-off-by: sitiom --- .github/workflows/winget.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index b7be9fb..bcd34aa 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -5,13 +5,13 @@ on: jobs: publish: - runs-on: windows-latest # Action can only run on Windows + runs-on: ubuntu-latest steps: - name: Extract version from tag id: extract_version run: | - $version = "${{ github.event.release.tag_name }}" -replace "v(\d+)\.(?:0*(\d+))-(\d+)", '$1.$2.$3' - Write-Output "version=$version" >> $GITHUB_OUTPUT + version=$(echo "${{ github.event.release.tag_name }}" | sed -E 's/v([0-9]+)\.0*([0-9]+)-([0-9]+)/\1.\2.\3/') + echo "version=$version" >> $GITHUB_OUTPUT - uses: vedantmgoyal2009/winget-releaser@v2 with: identifier: daynix.UsbDk From b7d33900280da8b65a35ceb51d8973a7f165138a Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 30 Jul 2024 17:52:17 +0800 Subject: [PATCH 6/6] Update winget.yml Signed-off-by: Ryan --- .github/workflows/winget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index bcd34aa..e9fea06 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -12,7 +12,7 @@ jobs: run: | version=$(echo "${{ github.event.release.tag_name }}" | sed -E 's/v([0-9]+)\.0*([0-9]+)-([0-9]+)/\1.\2.\3/') echo "version=$version" >> $GITHUB_OUTPUT - - uses: vedantmgoyal2009/winget-releaser@v2 + - uses: vedantmgoyal9/winget-releaser@main with: identifier: daynix.UsbDk version: ${{ steps.extract_version.outputs.version }}