Skip to content

Commit

Permalink
fix: copy over files instead of extra_files for brew tap
Browse files Browse the repository at this point in the history
  • Loading branch information
samsullivan committed Jan 18, 2024
1 parent 224dcde commit 36db33f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,33 +86,42 @@ jobs:
go-version: 1.21.5
- name: Make directory
run: |
mkdir -p ./jqless-build/darwin
mkdir -p ./jqless-build/linux
mkdir -p ./jqless-build/windows
mkdir -p ./dist/darwin
mkdir -p ./dist/linux
mkdir -p ./dist/windows
- name: Download darwin binaries
uses: actions/download-artifact@v4
with:
name: jqless-darwin
path: ./jqless-build/darwin
path: ./dist/darwin
- name: Download linux binaries
uses: actions/download-artifact@v4
with:
name: jqless-linux
path: ./jqless-build/linux
path: ./dist/linux
- name: Download windows binaries
uses: actions/download-artifact@v4
with:
name: jqless-windows
path: ./jqless-build/windows
- name: Merge checksum file
path: ./dist/windows
- name: Merge checksum files
run: |
cd ./jqless-build
cd ./dist
cat ./darwin/jqless*checksums.txt >> checksums.txt
cat ./linux/jqless*checksums.txt >> checksums.txt
cat ./windows/jqless*checksums.txt >> checksums.txt
rm ./darwin/jqless*checksums.txt
rm ./linux/jqless*checksums.txt
rm ./windows/jqless*checksums.txt
- name: Move binary files
run: |
cd ./dist
mv ./darwin/jqless_*.tar.gz .
mv ./linux/jqless_*.tar.gz .
mv ./windows/jqless_*.zip .
- name: Cleanup nested dist
run: |
cd ./dist
rm -rf ./darwin
rm -rf ./linux
rm -rf ./windows
- name: Release
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
5 changes: 1 addition & 4 deletions .goreleaser/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ changelog:
- "^test:"

release:
name_template: "{{.Tag}} {{.TagSubject}}"
prerelease: auto
extra_files:
- glob: ./jqless-build/**/*
- glob: ./jqless-build/checksums.txt
name_template: "{{.Tag}} {{.TagSubject}}"

brews:
-
Expand Down

0 comments on commit 36db33f

Please sign in to comment.