File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -579,14 +579,24 @@ jobs:
579
579
mv debian-x86_64.deb ../files/martin-Debian-x86_64.deb
580
580
cd ..
581
581
582
+ - name : Publish
583
+ if : startsWith(github.ref, 'refs/tags/v')
584
+ run : |
585
+ set -x
586
+
587
+ # Extract Github release version only without the "v" prefix
588
+ MARTIN_VERSION=$(echo "${{ github.ref }}" | sed -e 's/refs\/tags\/v//')
589
+
590
+ cd target
582
591
mkdir homebrew
592
+
583
593
cat << EOF > homebrew_config.yaml
584
- version: "${{ github.ref }} "
594
+ version: "$MARTIN_VERSION "
585
595
macos_arm_sha256: "$(shasum -a 256 files/martin-Darwin-aarch64.tar.gz | cut -d' ' -f1)"
586
596
macos_intel_sha256: "$(shasum -a 256 files/martin-Darwin-x86_64.tar.gz | cut -d' ' -f1)"
587
597
linux_arm_sha256: "$(shasum -a 256 files/martin-Linux-aarch64-musl.tar.gz | cut -d' ' -f1)"
588
598
linux_intel_sha256: "$(shasum -a 256 files/martin-Linux-x86_64-musl.tar.gz | cut -d' ' -f1)"
589
- EOF
599
+ EOF
590
600
591
601
- name : Publish
592
602
if : startsWith(github.ref, 'refs/tags/')
You can’t perform that action at this time.
0 commit comments