diff --git a/.github/workflows/test-publish-scoop-bucket.yml b/.github/workflows/test-publish-scoop-bucket.yml deleted file mode 100644 index 6b0056d..0000000 --- a/.github/workflows/test-publish-scoop-bucket.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: Test publish Managarr scoop bucket - -permissions: - pull-requests: write - contents: write - -on: - workflow_dispatch: - -jobs: - publish-scoop-bucket: - name: Publish Scoop Bucket - 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: - ssh-key: ${{ secrets.RELEASE_BOT_SSH_KEY }} - fetch-depth: 1 - - - name: Set release assets and version - shell: pwsh - run: | - # mock artifact data - mkdir artifacts - 'c27e191f4290501287ca16268d9c2029e1f5cd01f7c2ac2be3cdfee80395f719' | Set-Content -Path artifacts/managarr-windows.sha256 - '0.4.1' | Set-Content -Path artifacts/release-version - - # Read the first column from the SHA256 file - $windows_sha = Get-Content ./artifacts/managarr-windows.sha256 | ForEach-Object { $_.Split(' ')[0] } - Add-Content -Path $env:GITHUB_ENV -Value "WINDOWS_SHA=$windows_sha" - - # Read the release version from the release-version file - $release_version = Get-Content ./artifacts/release-version - Add-Content -Path $env:GITHUB_ENV -Value "RELEASE_VERSION=$release_version" - - - name: Install Scoop - uses: MinoruSekine/setup-scoop@main - - - name: Update Scoop Bucket - shell: pwsh - run: | - # Clean up previous version - Remove-Item -Path './deployment/scoop/managarr.json' -ErrorAction SilentlyContinue - - # Run packaging script - python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/scoop/managarr.json.template" "./deployment/scoop/managarr.json" ${{ env.WINDOWS_SHA }} - - - name: Persist the new managarr.json to the repo - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: pwsh - run: | - # Persist the scoop bucket changes into repo - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add ./deployment/scoop/managarr.json - git commit -m "chore: Update Scoop bucket for version ${{ env.RELEASE_VERSION }} [skip ci]" - git push origin - - - name: Publish the updated bucket - shell: pwsh - run: | - cd ./deployment/scoop/ - scoop bucket add managarr-bucket https://github.com/Dark-Alex-17/managarr/tree/main/deployment/scoop - scoop install managarr - managarr --help