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" diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml new file mode 100644 index 0000000..e9fea06 --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,19 @@ +name: Publish to Winget +on: + release: + types: [released] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Extract version from tag + id: extract_version + 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: vedantmgoyal9/winget-releaser@main + with: + identifier: daynix.UsbDk + version: ${{ steps.extract_version.outputs.version }} + token: ${{ secrets.WINGET_TOKEN }} diff --git a/README.md b/README.md index f8317f1..6fb30f7 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,11 @@ desired configuration. ## Installing and running +UsbDk can be installed via Winget on desktop Windows: +``` +winget install daynix.UsbDk +``` + Use UsbDkController.exe to install/uninstall and verify basic operation. Run UsbDkController.exe without parameters for command line options.