Merge pull request #117 from IowaComputerGurus/feature/fix-number-format #11
Workflow file for this run
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: Release Build | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build & Publish to NuGet | |
| environment: nuget | |
| env: | |
| solution-path: './src/NetCore.Utilities.Spreadsheet.sln' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Ensure .NET Installed | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Install GitVersion | |
| uses: gittools/actions/gitversion/setup@v4.2.0 | |
| with: | |
| versionSpec: '6.4.0' | |
| - name: Determine Version | |
| id: gitversion | |
| uses: gittools/actions/gitversion/execute@v4.2.0 | |
| - name: Restore Packages | |
| run: dotnet restore "${{ env.solution-path }}" | |
| - name: Build | |
| run: dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }} | |
| - name: Test | |
| run: dotnet test "${{ env.solution-path }}" --no-build --configuration Release | |
| - name: Publish | |
| run: dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.ICG_NUGET_API_KEY }} |