Skip to content

Commit

Permalink
issue-#10
Browse files Browse the repository at this point in the history
Update Readme and Actions to be performed after merge

closes #10
  • Loading branch information
anuarkaliyev23 committed Apr 6, 2024
1 parent d50e49c commit 1b2cf32
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Create GH release

on:
# pull_request:
# types:
# - closed
# branches:
# - 'main'
pull_request:
types:
- closed
branches:
- 'main'
push:
branches:
- "issue-#10"

jobs:
Setup:
# if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -36,7 +36,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.RELEASE_TOKEN }}
name: $VERSION
name: ${{ steps.tag.outputs.tag }}
tag_name: ${{ steps.tag.outputs.tag }}
files: |
bin/goker-darwin-amd64
Expand Down
2 changes: 1 addition & 1 deletion .hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

COMMIT_MSG_FILE=$1

echo "$(git rev-parse --abbrev-ref HEAD)\n" > ${COMMIT_MSG_FILE}
echo "$(git rev-parse --abbrev-ref HEAD)\n #none" > ${COMMIT_MSG_FILE}
23 changes: 22 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,21 @@ This tool took heavy inspiration from [poker-odds](https://github.com/CookPete/p

## Installation

At this moment it can only be built from sources. See [build notes](#Build)
### Download Release

Every merge to `main` branch creates release accessible from GH page

This repo follows semantic versioning. By default it bumps version by `minor` release.
To change this behaviour you can pass these strings in your message

- `#none`
- `#patch`
- `#minor`
- `#major`

### Build from sources

See [build notes](#Build)

### Hand Odds calculation

Expand Down Expand Up @@ -43,6 +57,13 @@ Ties: 0.0%
goker hand-odds --hands KsThAcAd,8d7d5c4c --board KdTd9d2d -i 1000 --omaha
```

```
[KsThAcAd]: 10.7%
[8d7d5c4c]: 89.3%
Ties: 0.0%
4737 ms
```

## Roadmap

Technical Stuff:
Expand Down

0 comments on commit 1b2cf32

Please sign in to comment.