Skip to content

Commit

Permalink
feat(cli): support for auto update packaging (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
olamothe authored Mar 10, 2021
1 parent 329f8e1 commit 2d7c1c7
Show file tree
Hide file tree
Showing 7 changed files with 415 additions and 28 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,31 @@ name: Build binaries
on:
release:
types: [published]

jobs:
package:
name: Package for ${{ matrix.pack-command }}
name: Package for ${{ matrix.for }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
pack-command: macos
pack-command: :macos
additional-install: echo "no additional install"
for: 'macos install kit'
- os: ubuntu-latest
pack-command: win
pack-command: :win
additional-install: sudo apt-get install nsis p7zip-full -y
for: 'windows install kit'
- os: ubuntu-latest
pack-command: :deb
additional-install: echo "no additional install"
for: 'linux install kit'
- os: ubuntu-latest
pack-command: deb
pack-command: ''
additional-install: echo "no additional install"
for: 'tarball'

steps:
- uses: actions/checkout@v2
Expand All @@ -32,11 +40,11 @@ jobs:
run: ${{ matrix.additional-install }}
- name: Create package
working-directory: ./packages/cli
run: ./node_modules/@oclif/dev-cli/bin/run pack:${{ matrix.pack-command }}
run: ./node_modules/@oclif/dev-cli/bin/run pack${{ matrix.pack-command }}
- name: Upload binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./packages/cli/dist/${{ matrix.pack-command }}/**/*
file: ./packages/cli/dist/**/*
file_glob: true
tag: ${{ github.ref }}
4 changes: 1 addition & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"packages": [
"packages/*"
],
"packages": ["packages/*"],
"version": "0.4.0"
}
27 changes: 16 additions & 11 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
[![License](https://img.shields.io/npm/l/@coveo/cli.svg)](https://github.com/coveo/cli/blob/master/package.json)

<!-- toc -->
* [@coveo/cli](#coveocli)
* [Usage](#usage)
* [Commands](#commands)

- [@coveo/cli](#coveocli)
- [Usage](#usage)
- [Commands](#commands)
<!-- tocstop -->

# Usage

<!-- usage -->

```sh-session
$ npm install -g @coveo/cli
$ coveo COMMAND
Expand All @@ -26,19 +28,22 @@ USAGE
$ coveo COMMAND
...
```

<!-- usagestop -->

# Commands

<!-- commands -->
* [`coveo auth:login`](#coveo-authlogin)
* [`coveo config:get`](#coveo-configget)
* [`coveo config:set`](#coveo-configset)
* [`coveo help [COMMAND]`](#coveo-help-command)
* [`coveo org:list`](#coveo-orglist)
* [`coveo ui:create:angular NAME`](#coveo-uicreateangular-name)
* [`coveo ui:create:react NAME`](#coveo-uicreatereact-name)
* [`coveo ui:create:vue NAME`](#coveo-uicreatevue-name)

- [`coveo auth:login`](#coveo-authlogin)
- [`coveo config:get`](#coveo-configget)
- [`coveo config:set`](#coveo-configset)
- [`coveo help [COMMAND]`](#coveo-help-command)
- [`coveo org:list`](#coveo-orglist)
- [`coveo ui:create:angular NAME`](#coveo-uicreateangular-name)
- [`coveo ui:create:react NAME`](#coveo-uicreatereact-name)
- [`coveo ui:create:vue NAME`](#coveo-uicreatevue-name)
- [`coveo update [CHANNEL]`](#coveo-update-channel)

## `coveo auth:login`

Expand Down
Loading

0 comments on commit 2d7c1c7

Please sign in to comment.