Skip to content

Commit

Permalink
Merge pull request #2 from go-semantic-release/docs-usage
Browse files Browse the repository at this point in the history
Added usage documentation
  • Loading branch information
durandj authored Mar 27, 2021
2 parents 9898f2b + fd4867f commit 8b164aa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
release:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
Expand Down
34 changes: 30 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
# :white_check_mark: condition-bitbucket

[![CI](https://github.com/durandj/semantic-release-condition-bitbucket/workflows/CI/badge.svg?branch=main)](https://github.com/durandj/semantic-release-condition-bitbucket/actions?query=workflow%3ACI+branch%3Amain)
[![Go Report Card](https://goreportcard.com/badge/github.com/durandj/semantic-release-condition-bitbucket)](https://goreportcard.com/report/github.com/durandj/semantic-release-condition-bitbucket)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/durandj/semantic-release-condition-bitbucket)](https://pkg.go.dev/github.com/durandj/semantic-release-condition-bitbucket)
[![CI](https://github.com/go-semantic-release/condition-bitbucket/workflows/CI/badge.svg?branch=main)](https://github.com/go-semantic-release/condition-bitbucket/actions?query=workflow%3ACI+branch%3Amain)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-semantic-release/condition-bitbucket)](https://goreportcard.com/report/github.com/go-semantic-release/condition-bitbucket)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/go-semantic-release/condition-bitbucket)](https://pkg.go.dev/github.com/go-semantic-release/condition-bitbucket)

The Bitbucket Pipelines condition for
[go-semantic-release](https://github.com/go-semantic-release/semantic-release).

This plugin will make sure that the continuous integration environment
conditions are met. Namely that the release is happening within
Bitbucket Pipelines and is on the correct branch.

## Usage

TODO
To use this plugin you need to include the following block in your
`.semrelrc` file.

```json
{
"plugins": {
"ci-condition": {
"name": "bitbucket@^1.0.0",
// Options can be omitted if you want to use the defaults.
// See the section on configuration below.
"options": {
// Put configuration options here
}
}
}
}
```

### Configuration

| Name | Default Value | Description |
|:--------------:|:-------------:|:-------------------------------------------:|
| defaultBranch | master | The branch where deployments should happen. |

## Licence

Expand Down

0 comments on commit 8b164aa

Please sign in to comment.