Add NuGet downloader project #3
This file contains 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 repository utilities' | |
on: | |
push: | |
branches: | |
- '**' | |
paths: | |
- 'repository-utilities/**' | |
- '.github/workflows/build-repository-utilities.yml' | |
pull_request: | |
branches: | |
- '**' | |
paths: | |
- 'repository-utilities/**' | |
- '.github/workflows/build-repository-utilities.yml' | |
defaults: | |
run: | |
working-directory: repository-utilities | |
jobs: | |
build: | |
name: 'Building' | |
strategy: | |
matrix: | |
system: [ windows-2022 ] | |
config: [ Debug, Release ] | |
runs-on: ${{ matrix.system }} | |
env: | |
Solution: RepositoryUtilities.sln | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Install dependencies | |
run: | | |
dotnet restore $env:Solution | |
- name: Build solution | |
run: | | |
dotnet build $env:Solution -p:Configuration=${{ matrix.config }} --no-restore | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: repository-utilities-${{ matrix.config }}-${{ github.sha }} | |
path: repository-utilities/bin/${{ matrix.config }}/ |