diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d07d0c..053c53a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -287,13 +287,6 @@ jobs: name: Publish Chocolatey Package runs-on: windows-latest steps: - - name: Configure SSH for Git - run: | - mkdir -p ~/.ssh - echo "${{ secrets.RELEASE_BOT_SSH_KEY }}" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -H github.com >> ~/.ssh/known_hosts - - name: Checkout repository uses: actions/checkout@v4 with: @@ -323,13 +316,7 @@ jobs: - name: Package and Publish package to Chocolatey run: | - # Cleanup old package files - if (-not (Test-Path -Path './deployment/chocolatey/tools' -PathType Container)) { - New-Item -Path './deployment/chocolatey/tools' -ItemType Directory - } - rm -Force ./deployment/chocolatey/tools/chocolateyinstall.ps1 - rm -Force ./deployment/chocolatey/managarr.nuspec - + mkdir ./deployment/chocolatey/tools # Run packaging script python "./deployment/chocolatey/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/chocolatey/managarr.nuspec.template" "./deployment/chocolatey/managarr.nuspec" ${{ env.WINDOWS_SHA }} python "./deployment/chocolatey/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/chocolatey/chocolateyinstall.ps1.template" "./deployment/chocolatey/tools/chocolateyinstall.ps1" ${{ env.WINDOWS_SHA }} @@ -342,14 +329,6 @@ jobs: $version = $version -replace " ", "." choco push $version.nupkg -s https://push.chocolatey.org/ --api-key ${{ secrets.CHOCOLATEY_API_KEY }}; - # Persist changes into repo - cd ../../ - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add ./deployment/chocolatey/tools/chocolateyinstall.ps1 ./deployment/chocolatey/managarr.nuspec - git commit -m "chore: Update Chocolatey package for version ${{ env.RELEASE_VERSION }} [skip ci]" - git push origin main - publish-docker-image: needs: [publish-github-release] name: Publishing Docker image to Docker Hub diff --git a/README.md b/README.md index ecbfb4a..fc26f92 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,7 @@ Alternatively, you can try out the demo container without downloading anything b ### Chocolatey (Windows) The Managarr Chocolatey package is located [here](https://community.chocolatey.org/packages/managarr). Please note that validation -of Chocolatey packages take quite some time, and thus the package may not be available immediately after a new release. If you want the -latest version and don't want to wait, use the Scoop installation method instead. +of Chocolatey packages take quite some time, and thus the package may not be available immediately after a new release. ```powershell choco install managarr diff --git a/deployment/packager.py b/deployment/chocolatey/packager.py similarity index 100% rename from deployment/packager.py rename to deployment/chocolatey/packager.py diff --git a/deployment/scoop/managarr.json b/deployment/scoop/managarr.json deleted file mode 100644 index f878f0d..0000000 --- a/deployment/scoop/managarr.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "homepage": "https://github.com/Dark-Alex-17/managarr", - "description": "A fast and simple dashboard for Kubernetes", - "version": "0.4.1", - "license": "MIT", - "architecture": { - "64bit": { - "url": "https://github.com/Dark-Alex-17/managarr/releases/download/v0.4.1/managarr-windows.tar.gz", - "hash": "c27e191f4290501287ca16268d9c2029e1f5cd01f7c2ac2be3cdfee80395f719" - } - }, - "bin": "managarr.exe", - "checkver": "github", - "autoupdate": { - "architecture": { - "64bit": { - "url": "https://github.com/Dark-Alex-17/managarr/releases/download/v0.4.1/managarr-windows.tar.gz", - "hash": { - "url": "https://github.com/Dark-Alex-17/managarr/releases/download/v0.4.1/managarr-windows.sha256", - "regex": "$sha256" - } - } - } - } -} diff --git a/deployment/scoop/managarr.json.template b/deployment/scoop/managarr.json.template deleted file mode 100644 index d355108..0000000 --- a/deployment/scoop/managarr.json.template +++ /dev/null @@ -1,25 +0,0 @@ -{ - "homepage": "https://github.com/Dark-Alex-17/managarr", - "description": "A fast and simple dashboard for Kubernetes", - "version": "$version", - "license": "MIT", - "architecture": { - "64bit": { - "url": "https://github.com/Dark-Alex-17/managarr/releases/download/v$version/managarr-windows.tar.gz", - "hash": "$hash_64" - } - }, - "bin": "managarr.exe", - "checkver": "github", - "autoupdate": { - "architecture": { - "64bit": { - "url": "https://github.com/Dark-Alex-17/managarr/releases/download/v$version/managarr-windows.tar.gz", - "hash": { - "url": "https://github.com/Dark-Alex-17/managarr/releases/download/v$version/managarr-windows.sha256", - "regex": "$sha256" - } - } - } - } -}