Skip homebrew release on prereleases (i.e. *-rc)

This commit is contained in:
Ian Davis 2022-11-07 14:39:45 +00:00
parent ecef0b6361
commit 75f9f72147
3 changed files with 33 additions and 17 deletions

View File

@ -547,7 +547,7 @@ jobs:
steps:
- run:
name: Install git jq curl
command: apt update && apt install -y git jq curl
command: apt update && apt install -y git jq curl sudo
- checkout
- git_fetch_all_tags
- checkout
@ -1100,12 +1100,13 @@ workflows:
- build-debug
- build-lotus-soup
release:
jobs:
- build-linux-amd64:
name: "Build ( linux / amd64 )"
filters:
branches:
only:
- goreleaser-prebuilt-m1
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
tags:
only:
@ -1115,7 +1116,6 @@ workflows:
filters:
branches:
only:
- goreleaser-prebuilt-m1
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
tags:
only:
@ -1125,11 +1125,23 @@ workflows:
filters:
branches:
only:
- goreleaser-prebuilt-m1
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
tags:
only:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
- release:
name: "Release"
requires:
- "Build ( darwin / amd64 )"
- "Build ( linux / amd64 )"
- "Build ( darwin / arm64 )"
filters:
branches:
ignore:
- /.*/
tags:
only:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
- release:
name: "Release (dry-run)"
dry-run: true
@ -1140,11 +1152,7 @@ workflows:
filters:
branches:
only:
- goreleaser-prebuilt-m1
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
tags:
only:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
- build-appimage:
name: "Build AppImage"
filters:

View File

@ -547,7 +547,7 @@ jobs:
steps:
- run:
name: Install git jq curl
command: apt update && apt install -y git jq curl
command: apt update && apt install -y git jq curl sudo
- checkout
- git_fetch_all_tags
- checkout
@ -825,12 +825,13 @@ workflows:
- build-debug
- build-lotus-soup
release:
jobs:
- build-linux-amd64:
name: "Build ( linux / amd64 )"
filters:
branches:
only:
- goreleaser-prebuilt-m1
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
tags:
only:
@ -840,7 +841,6 @@ workflows:
filters:
branches:
only:
- goreleaser-prebuilt-m1
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
tags:
only:
@ -850,11 +850,23 @@ workflows:
filters:
branches:
only:
- goreleaser-prebuilt-m1
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
tags:
only:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
- release:
name: "Release"
requires:
- "Build ( darwin / amd64 )"
- "Build ( linux / amd64 )"
- "Build ( darwin / arm64 )"
filters:
branches:
ignore:
- /.*/
tags:
only:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
- release:
name: "Release (dry-run)"
dry-run: true
@ -865,11 +877,7 @@ workflows:
filters:
branches:
only:
- goreleaser-prebuilt-m1
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
tags:
only:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
- build-appimage:
name: "Build AppImage"
filters:

View File

@ -62,7 +62,6 @@ release:
prerelease: auto
name_template: "Release v{{.Version}}"
brews:
- tap:
owner: filecoin-project
@ -82,6 +81,7 @@ brews:
homepage: "https://filecoin.io"
description: "A homebrew cask for installing filecoin-project/lotus on MacOS"
license: MIT
skip_upload: auto
dependencies:
- name: hwloc