diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 86815e6..25b57eb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,6 +8,7 @@ env: PROJECT_NAME: clade REPO_NAME: ${{ github.repository }} BREW_TAP: eric9n/homebrew-tap + DESC: "A tool for phylogenetic tree construction and pruning based on NCBI taxonomy data and GTDB (Genome Taxonomy Database) data." jobs: dist: @@ -159,6 +160,7 @@ jobs: VERSION=${{ steps.extract-version.outputs.tag-name }} REPO=${{ env.REPO_NAME }} PROJECT=${{ env.PROJECT_NAME }} + DESC=${{ env.DESC }} X86_64_URL="https://github.com/${REPO}/releases/download/${VERSION}/${PROJECT}-${VERSION}-x86_64-apple-darwin" AARCH64_URL="https://github.com/${REPO}/releases/download/${VERSION}/${PROJECT}-${VERSION}-aarch64-apple-darwin" @@ -168,7 +170,7 @@ jobs: cat > Formula/${PROJECT}.rb < "${PROJECT}" + else + bin.install "${PROJECT}-#{version}-aarch64-apple-darwin" => "${PROJECT}" + end + end + test do + system "#{bin}/${PROJECT}", "--version" end end EOL