Skip to content

Commit

Permalink
oclif 3 doesn't use a channel/foo/ path under dist/; also add shasum …
Browse files Browse the repository at this point in the history
…binary to work around missing shasum on fedora/rhel

Change-Id: I768fa9e8a6a051e17115937efd8948cb95ec28d6
Signed-off-by: Nick Boldt <[email protected]>
  • Loading branch information
nickboldt committed Sep 21, 2023
1 parent f98705c commit eac02e7
Show file tree
Hide file tree
Showing 7 changed files with 2,954 additions and 375 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/minikube-chectl-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: UnPack chectl binaries in $HOME/chectl
run: |
# Will unpack chectl binaries in $HOME/chectl
tar -xvf dist/channels/*/chectl-linux-x64.tar.gz -C $HOME
tar -xvf dist/chectl-linux-x64.tar.gz -C $HOME
echo "$HOME/chectl/bin" >> $GITHUB_PATH
rm -rf tmp/
- name: Run tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
with:
name: ${{ steps.TAG_UTIL.outputs.gh_release_name }}
tag_name: ${{ steps.TAG_UTIL.outputs.gh_tag }}
files: "./dist/channels/**/chectl-*.gz"
files: "./dist/chectl-*.gz"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update github pages
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Testing summary will be printed to the output.
To test ensure `chectl` is built successfully, launch the `[Chectl] Run` command. It wil run `chectl` with `--help` directive.

## Package binaries
For packaging binaries, [oclif](https://github.com/oclif/dev-cli) is used. It generates packages for Linux, Windows, and MacOS operating systems and puts the result in the `dist/channels/stable` directory.
For packaging binaries, [oclif](https://github.com/oclif/dev-cli) is used. It generates packages for Linux, Windows, and MacOS operating systems and puts the result in the `dist/` directory.
To start packaging, just run the `[Chectl] Package Binaries` command. It will run the following in the `/projects/chectl` directory:

```bash
Expand Down
Loading

0 comments on commit eac02e7

Please sign in to comment.