Merge pull request #21 from cashfree/3.2.0 #30
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
name: Generate .nupkg file and upload | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Update NuGet package | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Setup .NET Core @ Latest | |
uses: actions/setup-dotnet@v1 | |
with: | |
source-url: https://api.nuget.org/v3/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}} | |
- name: Build solution and generate NuGet package | |
run: | | |
cp LICENSE.md src/cashfree_pg/ | |
cp README.md src/cashfree_pg/ | |
cd src/cashfree_pg | |
dotnet pack -c Release -o out | |
- name: Push generated package to Nuget registry | |
run: dotnet nuget push ./src/cashfree_pg/out/*.nupkg --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate --no-symbols | |