Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jun 14, 2019
1 parent 2daa901 commit 79dbd80
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,29 @@ Usage: github-release <command> [<args>]
Options:
-V, --version output the version number
--baseurl <baseurl> API endpoint (default: "https://api.github.com")
-T, --token <token> OAuth2 token
-o, --owner <owner> The repository owner.
-r, --repo <repo> The repository name.
-T, --token <token> OAuth2 token (default: null)
-o, --owner <owner> The repository owner. (default: "")
-r, --repo <repo> The repository name. (default: "")
-t, --tag <tag> The name of the tag.
--release-id <id> The release id.
-c, --commitish <value> Specifies the commitish value for tag. Unused if the tag already exists.
-n, --name <name> The name of the release.
-n, --name <name> The name of the release. (default: "")
-b, --body <body> Text describing the contents of the tag.
-d, --draft [value] `true` makes the release a draft, and `false` publishes the release.
-p, --prerelease [value] `true` to identify the release as a prerelease, `false` to identify the release as a full release.
-h, --help output usage information
```

## Commands

### List

```sh
github-release list
--owner cheton \
--repo github-release-cli
```

### Upload

```sh
Expand Down Expand Up @@ -82,16 +93,35 @@ github-release upload \

### Delete

#### Delete release assets

You can use glob expressions to match files:
```sh
github-release delete \
--owner cheton \
--repo github-release-cli \
--tag "v0.1.0" \
--name "v0.1.0" \
archive.zip index.html "app.*"
```

#### Delete a release by specifying the tag name

```sh
github-release delete \
--owner cheton \
--repo github-release-cli \
--tag "v0.1.0"
```

#### Delete a release by specifying the release id

```sh
github-release delete \
--owner cheton \
--repo github-release-cli \
--release-id 17994985
```

## Examples

https://github.com/cncjs/cncjs-pendant-tinyweb/blob/master/.travis.yml
Expand Down

0 comments on commit 79dbd80

Please sign in to comment.