From 2d818bd4e7fe874ef33fa5590f72c530374aa95d Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Mon, 6 Nov 2023 20:25:36 -0600 Subject: [PATCH] Disable brew installer https://github.com/axodotdev/cargo-dist/issues/551 --- .github/workflows/release.yml | 34 ---------------------------------- Cargo.lock | 2 +- Cargo.toml | 12 ++++-------- 3 files changed, 5 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35ae135..dd6d1dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -173,40 +173,6 @@ jobs: - name: print tag run: echo "ok we're publishing!" - publish-homebrew-formula: - needs: [plan, should-publish] - runs-on: "ubuntu-20.04" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PLAN: ${{ needs.plan.outputs.val }} - GITHUB_USER: "axo bot" - GITHUB_EMAIL: "admin+bot@axo.dev" - if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }} - steps: - - uses: actions/checkout@v4 - with: - repository: "FNNDSC/homebrew-mni2mz3" - token: ${{ secrets.HOMEBREW_TAP_TOKEN }} - # So we have access to the formula - - name: Fetch local artifacts - uses: actions/download-artifact@v3 - with: - name: artifacts - path: Formula/ - - name: Commit formula files - run: | - git config --global user.name "${GITHUB_USER}" - git config --global user.email "${GITHUB_EMAIL}" - - for release in $(echo "$PLAN" | jq --compact-output '.releases[]'); do - name=$(echo "$release" | jq .app_name --raw-output) - version=$(echo "$release" | jq .app_version --raw-output) - - git add Formula/${name}.rb - git commit -m "${name} ${version}" - done - git push - # Create a Github Release with all the results once everything is done publish-release: needs: [plan, should-publish] diff --git a/Cargo.lock b/Cargo.lock index e24ef81..8da4153 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -227,7 +227,7 @@ dependencies = [ [[package]] name = "mni2mz3" -version = "0.1.0-rc.1" +version = "0.1.0-rc.2" dependencies = [ "approx", "flate2", diff --git a/Cargo.toml b/Cargo.toml index 8135e45..c23c503 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mni2mz3" -version = "0.1.0-rc.1" +version = "0.1.0-rc.2" edition = "2021" authors = ["Jennings Zhang "] @@ -43,18 +43,14 @@ cargo-dist-version = "0.4.2" # CI backends to support ci = ["github"] # The installers to generate for each app -installers = ["shell", "powershell", "npm", "homebrew"] -# A GitHub repo to push Homebrew formulas to -tap = "FNNDSC/homebrew-mni2mz3" +installers = ["shell", "powershell", "npm"] # Target platforms to build apps for (Rust target-triple syntax) targets = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"] # The archive format to use for windows builds (defaults .zip) -windows-archive = ".tar.gz" +windows-archive = ".zip" # The archive format to use for non-windows builds (defaults .tar.xz) unix-archive = ".tar.gz" # Publish jobs to run in CI -publish-jobs = ["homebrew"] -# Publish jobs to run in CI pr-run-mode = "skip" - +# Whether to publish prereleases to package managers publish-prereleases = true