From d4a5c31aa3a4e445fca7e5191d12eab5bffd2402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Misty=20De=20M=C3=A9o?= Date: Tue, 5 Dec 2023 11:31:11 -0800 Subject: [PATCH] Remove publish jobs --- .github/workflows/release.yml | 39 +---------------------------------- dist.toml | 6 +----- 2 files changed, 2 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c54cd6..e696ba9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -221,52 +221,15 @@ jobs: name: artifacts path: dist-manifest.json - publish-homebrew-formula: - needs: - - plan - - host - 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: "axodotdev/homebrew-tap" - 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 while uploading all files to it announce: needs: - plan - host - - publish-homebrew-formula # use "always() && ..." to allow us to wait for all publish jobs while # still allowing individual publish jobs to skip themselves (for prereleases). # "host" however must run to completion, no skipping allowed! - if: ${{ always() && needs.host.result == 'success' && (needs.publish-homebrew-formula.result == 'skipped' || needs.publish-homebrew-formula.result == 'success') }} + if: ${{ always() && needs.host.result == 'success' }} runs-on: "ubuntu-20.04" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/dist.toml b/dist.toml index 83d6058..05238f3 100644 --- a/dist.toml +++ b/dist.toml @@ -1,7 +1,7 @@ [package] name = "axolotlsay-js" description = "JavaScript port of axolotlsay" -version = "0.2.0" +version = "0.3.0" license = "MIT" repository = "https://github.com/axodotdev/axolotlsay-js" binaries = ["axolotlsay-js"] @@ -15,11 +15,7 @@ cargo-dist-version = "0.5.0" ci = ["github"] # The installers to generate for each app installers = ["shell", "powershell"] -# A GitHub repo to push Homebrew formulas to -tap = "axodotdev/homebrew-tap" # Target platforms to build apps for (Rust target-triple syntax) targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc"] # Publish jobs to run in CI -publish-jobs = ["homebrew"] -# Publish jobs to run in CI pr-run-mode = "plan"