Skip to content

Commit

Permalink
ci(github-release): add links to binaries to Release Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
hituzi-no-sippo committed Sep 21, 2024
1 parent c572c35 commit 3fb625c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,14 @@ jobs:
- name: Render release notes
run: |
export X86_64_GNU_TGZ_URL="https://github.com/chevdor/tera-cli/releases/download/${{ env.RELEASE_VERSION }}/tera-cli-x86_64-unknown-linux-gnu.tar.gz"
export X86_64_MUSL_TGZ_URL="https://github.com/chevdor/tera-cli/releases/download/${{ env.RELEASE_VERSION }}/tera-cli-x86_64-unknown-linux-musl.tar.gz"
export AARCH64_GNU_TGZ_URL="https://github.com/chevdor/tera-cli/releases/download/${{ env.RELEASE_VERSION }}/tera-cli-aarch64-unknown-linux-gnu.tar.gz"
export AARCH64_MUSL_TGZ_URL="https://github.com/chevdor/tera-cli/releases/download/${{ env.RELEASE_VERSION }}/tera-cli-aarch64-unknown-linux-musl.tar.gz"
export DEBIAN_URL="https://github.com/chevdor/tera-cli/releases/download/${{ env.RELEASE_VERSION }}/tera-cli_linux_amd64.deb"
export MACOS_TGZ_URL="https://github.com/chevdor/tera-cli/releases/download/${{ env.RELEASE_VERSION }}/tera-macos-${{ env.RELEASE_VERSION }}.tar.gz"
export WINDOWS_ZIP_URL="https://github.com/chevdor/tera-cli/releases/download/${{ env.RELEASE_VERSION }}/tera-cli-aarch64-unknown-linux-musl.tar.gz"
export CHANGELOG=$(cat changelog.md)
tera --env --env-only --template templates/release.md > RELEASE_NOTES.md
Expand Down
18 changes: 18 additions & 0 deletions templates/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ You can find the changelogs below.

Download the binary for your OS from below:
- **Linux**
- [x86_64 gnu]({{ X86_64_GNU_TGZ_URL }})
- [x86_64 musl]({{ X86_64_MUSL_TGZ_URL }})
- [aarch64 gnu]({{ AARCH64_GNU_TGZ_URL }})
- [aarch64 musl]({{ AARCH64_MUSL_TGZ_URL }})
- [Debian package]({{ DEBIAN_URL }})
- **MacOS**
- [Archive]({{ MACOS_TGZ_URL }})
- **Windows**
- [Archive]({{ WINDOWS_ZIP_URL }})

# Install

## From source
Expand All @@ -18,6 +25,17 @@ cargo install --git https://github.com/chevdor/tera-cli
```

## Linux

### Binaries

```
wget {{ X86_64_GNU_TGZ_URL }}
tar xf tera-cli-x86_64-unknown-linux-gnu.tar.gz
./tera --help
```

### Debian

```
wget {{ DEBIAN_URL }}
dpkg -i tera-cli_linux_amd64.deb
Expand Down

0 comments on commit 3fb625c

Please sign in to comment.