Added the first Unit Tests and some xml description #5
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: CodeChavez M3diator Package | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Restore dependencies | |
| run: dotnet restore **/CodeChavez.M3diator/CodeChavez.M3diator.csproj --configfile nuget.config --no-cache | |
| - name: Build project | |
| run: dotnet build **/CodeChavez.M3diator/CodeChavez.M3diator.csproj --configuration Release | |
| - name: Package | |
| run: dotnet pack **/CodeChavez.M3diator/CodeChavez.M3diator.csproj --configuration Release --no-build --output ./artifacts | |
| - name: Push NuGet package | |
| run: dotnet nuget push "./artifacts/*.nupkg" --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json | |
| env: | |
| NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }} | |