Merge pull request #25 from scepman/dependabot/github_actions/dawidd6… #38
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: .NET Core for Windows | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: mcr.microsoft.com/dotnet/sdk:6.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: dotnet restore -r win-x64 ScepClient.csproj | |
- name: Build | |
run: dotnet build -p:Version=1.2.$GITHUB_RUN_NUMBER.500 --configuration Release --no-restore -r win-x64 ScepClient.csproj | |
- name: Publish | |
run: dotnet publish -p:Version=1.2.$GITHUB_RUN_NUMBER.500 --configuration Release --no-restore -r win-x64 -p:PublishSingleFile=true --self-contained false ScepClient.csproj | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: scepclient-win-x64 | |
path: bin/Release/net6.0/win-x64/publish/* |