Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,52 @@ jobs:
with:
name: ${{ needs.build.outputs.artifact_name }}
path: .
- name: Generate Scoop manifest
env:
REPOSITORY: ${{ github.repository }}
run: |
set -euo pipefail

version="${GITHUB_REF_NAME#v}"
url="https://github.com/${REPOSITORY}"
description=$(jq --raw-output '.description' package.json)

hash=$(awk -v f="seam-v${version}-windows-x64.exe" \
'{file = $2; sub(/^\*/, "", file)} file == f {print $1}' \
release/checksums.txt)
test -n "$hash"

# In the autoupdate section $version is a Scoop template variable,
# not a shell or jq one.
jq --null-input \
--arg version "$version" \
--arg description "$description" \
--arg url "$url" \
--arg hash "$hash" \
'{
version: $version,
description: $description,
homepage: $url,
license: "MIT",
architecture: {
"64bit": {
url: "\($url)/releases/download/v\($version)/seam-v\($version)-windows-x64.exe#/seam.exe",
hash: $hash
}
},
bin: "seam.exe",
checkver: {github: $url},
autoupdate: {
architecture: {
"64bit": {
url: "\($url)/releases/download/v$version/seam-v$version-windows-x64.exe#/seam.exe"
}
},
hash: {url: "\($url)/releases/download/v$version/checksums.txt"}
}
}' > release/seam.json

cat release/seam.json
- name: Generate release notes
id: changelog
run: |
Expand All @@ -45,6 +91,7 @@ jobs:
files: |
*.tgz
release/seam-*
release/seam.json
release/checksums.txt
body_path: ${{ github.workspace }}/${{ steps.changelog.outputs.outfile }}
npm:
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ but it does not include the Seam Wizard.
$ brew install seam
```

### Scoop

On Windows, install the CLI from [Scoop] with

```
> scoop install https://github.com/seamapi/cli/releases/latest/download/seam.json
```

Later, update it with `scoop update seam`.

### Standalone binary

Install the latest release on Linux and macOS with
Expand Down Expand Up @@ -104,6 +114,7 @@ npm or manual install, run `seam completion --install`.
[Homebrew]: https://formulae.brew.sh/cask/seam
[latest GitHub release]: https://github.com/seamapi/cli/releases/latest
[npm]: https://www.npmjs.com/
[Scoop]: https://scoop.sh/
[Seam Wizard]: https://github.com/seamapi/wizard
[shell completion]: #shell-completion

Expand Down
Loading