-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82e6db8
commit 209d253
Showing
3 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '7.0.x' | ||
|
||
- name: Build | ||
run: dotnet build -c Release | ||
- name: Test | ||
run: dotnet test -c Release --no-build | ||
|
||
- name: Publish Demo | ||
run: dotnet publish src/NPokerEngine.Demo/NPokerEngine.Demo.csproj -c Release --output release --nologo | ||
- name: Add .nojekyll file | ||
run: touch release/wwwroot/.nojekyll | ||
- name: Uploading files to gh-pages branch | ||
uses: JamesIves/github-pages-deploy-action@4.1.4 | ||
with: | ||
branch: gh-pages | ||
folder: release/wwwroot | ||
|
||
- name: Pack nugets | ||
run: dotnet pack src/NPokerEngine/NPokerEngine.csproj -c Release --no-build -p:PackageVersion=${{github.event.release.name}} --output . | ||
- name: Push to NuGet | ||
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# NPokerEngine | ||
|
||
Poker Engine written on .NET | ||
|
||
## Getting started | ||
|
||
https://github.com/miekhra/NPokerEngine | ||
|
||
## Additional documentation | ||
|
||
The engine is rewritten from [PyPokerEngine](https://github.com/ishikota/PyPokerEngine). Tutorial of this project can be used learning how to use engine. | ||
|
||
## Feedback | ||
|
||
Feel free to create an issues: | ||
|
||
- https://github.com/miekhra/NPokerEngine/issues |