-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: introduce new action and file for release candidates
- Loading branch information
Taranveer Bains
committed
Mar 8, 2024
1 parent
e59d77c
commit d69ffd6
Showing
5 changed files
with
137 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: rc-release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
jobs: | ||
check-tag: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.ref, '-rc')" | ||
steps: | ||
- name: Check for RC in tag | ||
run: | | ||
echo "No RC tag was detected: ${GITHUB_REF##*/}" | ||
echo "Cancelling the workflow" | ||
exit 1 | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: "true" | ||
- run: git fetch --prune --unshallow | ||
- name: setup dependencies | ||
uses: actions/setup-go@v2 | ||
- name: release dry run | ||
run: | | ||
make release-candidate-dry-run | ||
- name: setup release environment | ||
run: | | ||
echo "GITHUB_TOKEN=${{ secrets.PUBLISHER_TOKEN }}" >> .release-env | ||
env: | ||
HOMEBREW_APP_NAME: ${{ env.HOMEBREW_APP_NAME }} | ||
- name: release publish | ||
run: | | ||
make release-candidate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
builds: | ||
- id: darwin-amd64 | ||
main: ./ | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
|
||
env: | ||
- PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64 | ||
- PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig | ||
- CC=o64-clang | ||
- CXX=o64-clang++ | ||
flags: | ||
- -mod=readonly | ||
ldflags: | ||
- -s -w -X main.version={{.Version}} | ||
archives: | ||
- id: chatgpt-tui | ||
builds: | ||
- darwin-amd64 | ||
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
format: zip | ||
wrap_in_directory: true | ||
checksum: | ||
name_template: "checksums.txt" | ||
snapshot: | ||
name_template: "{{ .Tag }}" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
|
||
release: | ||
prerelease: auto | ||
draft: false | ||
|
||
brews: | ||
- name: rc-chatgpt-tui | ||
tap: | ||
owner: tearingItUp786 | ||
name: homebrew-tearingitup786 | ||
homepage: https://github.com/tearingItUp786/chatgpt-tui | ||
commit_author: | ||
name: tearingitup786 | ||
|
||
# Setting this will prevent goreleaser to actually try to commit the updated | ||
# formula - instead, the formula file will be stored on the dist folder only, | ||
# leaving the responsibility of publishing it to the user. | ||
# If set to auto, the release will not be uploaded to the homebrew tap | ||
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1 | ||
# | ||
# Templates: allowed | ||
skip_upload: auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters