This repository was archived by the owner on Jul 21, 2025. It is now read-only.
Enhance error handling and update URLs in JSON files #45
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: Build Console App | |
| env: | |
| DOTNET_VERSION: '8' # set this to the .NET Core version to use | |
| on: | |
| push: | |
| branches: [ "main", "akshay-online-patch-ymlfix" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Set up dependency caching for faster builds | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Change to project directory | |
| run: cd src | |
| - name: Build with dotnet | |
| run: dotnet build src/ADOGenerator.sln -c Release | |
| - name: Publish with dotnet | |
| run: dotnet publish src/ADOGenerator.sln -c Release -o "${{env.DOTNET_ROOT}}/drop" | |
| - name: Upload artifact for deployment job | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: .net-app | |
| path: "${{env.DOTNET_ROOT}}/drop" |