GHP fix #121
This file contains hidden or 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: Nuget CI | |
| on: | |
| push: | |
| branches: [ main, release/* ] | |
| pull_request: | |
| branches: [ main, release/* ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: checkout code | |
| uses: actions/checkout@v2 | |
| - name: setup .net core sdk | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 8.* | |
| - name: dotnet build | |
| run: dotnet build RulesEngineEditor.sln --configuration Release | |
| - name: dotnet pack | |
| run: dotnet pack RulesEngineEditor.sln -c Release --no-build --include-source --include-symbols -o nupkg | |
| - name: setup nuget | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: NuGet/setup-nuget@v1.0.6 | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
| with: | |
| nuget-version: latest | |
| - name: Publish NuGet | |
| uses: brandedoutcast/publish-nuget@v2 | |
| with: | |
| PROJECT_FILE_PATH: src/RulesEngineEditor/RulesEngineEditor.csproj | |
| NUGET_KEY: ${{ secrets.NUGET_API_KEY }} | |
| PACKAGE_NAME: RulesEngineEditor |