From 7d2c1596f4824fced540ae33a538824f75319250 Mon Sep 17 00:00:00 2001 From: Ryan Caezar Itang Date: Sat, 19 Nov 2022 13:22:23 +0800 Subject: [PATCH] Add Winget Releaser workflow & Dependabot --- .github/dependabot.yml | 6 ++++++ .github/workflows/winget.yml | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/winget.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..12301490 --- /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 00000000..65bfe6aa --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,17 @@ +name: Publish to Winget + +on: + release: + types: [released] + +jobs: + publish: + # Action can only be run on windows + runs-on: windows-latest + steps: + - uses: vedantmgoyal2009/winget-releaser@v1 + with: + identifier: CoreyButler.NVMforWindows + version: ${{ github.event.release.tag_name }} + installers-regex: 'nvm-setup\.exe$' + token: ${{ secrets.WINGET_TOKEN }}