Skip to content

Merge pull request #19 from cashfree/3.1.4 #28

Merge pull request #19 from cashfree/3.1.4

Merge pull request #19 from cashfree/3.1.4 #28

Workflow file for this run

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