Skip to content

Commit e415572

Browse files
committed
ci: make release notes have working download links
1 parent 0cc2978 commit e415572

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,20 @@ jobs:
3030
VERSION=${{ github.ref_name }}
3131
go build -o amped main.go
3232
HELP=$(./amped --help)
33+
VERSION_NO_V=${VERSION#v}
3334
cat > release_notes.md << EOF
3435
## Downloads
3536
3637
Download the appropriate binary for your system:
3738
3839
| OS | Architecture | Download |
3940
|---------|--------------|----------|
40-
| Linux | x86_64 | [amped-linux-amd64](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-linux-amd64) |
41-
| Linux | arm64 | [amped-linux-arm64](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-linux-arm64) |
42-
| Windows | x86_64 | [amped-windows-amd64.exe](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-windows-amd64.exe) |
43-
| Windows | arm64 | [amped-windows-arm64.exe](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-windows-arm64.exe) |
44-
| macOS | x86_64 | [amped-darwin-amd64](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-darwin-amd64) |
45-
| macOS | arm64 | [amped-darwin-arm64](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-darwin-arm64) |
41+
| Linux | x86_64 | [amped-linux-amd64_${VERSION_NO_V}_linux_amd64](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-linux-amd64_${VERSION_NO_V}_linux_amd64) |
42+
| Linux | arm64 | [amped-linux-arm64_${VERSION_NO_V}_linux_arm64](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-linux-arm64_${VERSION_NO_V}_linux_arm64) |
43+
| Windows | x86_64 | [amped-windows-amd64_${VERSION_NO_V}_windows_amd64.exe](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-windows-amd64_${VERSION_NO_V}_windows_amd64.exe) |
44+
| Windows | arm64 | [amped-windows-arm64_${VERSION_NO_V}_windows_arm64.exe](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-windows-arm64_${VERSION_NO_V}_windows_arm64.exe) |
45+
| macOS | x86_64 | [amped-darwin-amd64_${VERSION_NO_V}_darwin_amd64](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-darwin-amd64_${VERSION_NO_V}_darwin_amd64) |
46+
| macOS | arm64 | [amped-darwin-arm64_${VERSION_NO_V}_darwin_arm64](https://github.com/slashtechno/amped/releases/download/$VERSION/amped-darwin-arm64_${VERSION_NO_V}_darwin_arm64) |
4647
4748
## Help
4849

0 commit comments

Comments
 (0)