diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..615dfde2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml new file mode 100644 index 00000000..3eb3da3a --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,14 @@ +name: Publish to Winget +on: + release: + types: [released] + +jobs: + publish: + runs-on: windows-latest # Action can only run on Windows + steps: + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: schollz.croc + installers-regex: '_Windows-\w+\.zip$' + token: ${{ secrets.WINGET_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 8b0bd16d..b7b4176a 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ sudo port selfupdate sudo port install croc ``` -On Windows you can install the latest release with [Scoop](https://scoop.sh/) or [Chocolatey](https://chocolatey.org): +On Windows you can install the latest release with [Scoop](https://scoop.sh/), [Chocolatey](https://chocolatey.org), or [Winget](https://learn.microsoft.com/en-us/windows/package-manager/): ``` scoop install croc @@ -58,6 +58,10 @@ scoop install croc choco install croc ``` +``` +winget install schollz.croc +``` + On Unix you can install the latest release with [Nix](https://nixos.org/nix): ```