Skip to content

Commit

Permalink
Update build-and-publish-nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ahydrax authored Dec 9, 2022
1 parent bc703e9 commit c8ec90a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build-and-publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,25 @@ on:
jobs:
build-test-pack:

runs-on: ubuntu-latest
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup dotnet
uses: actions/setup-dotnet@v2

- name: Setup MSBuild Path
uses: microsoft/[email protected]

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'

dotnet-version: |
7.0.x
- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release
run: msbuild .\Hangfire.Atoms.sln /t:Build /p:Configuration=Release

- name: Pack
run: dotnet pack ./src/Hangfire.Atoms/Hangfire.Atoms.csproj --output nupkgs --no-build --configuration Release -p:PackageVersion=${{ github.event.release.tag_name }}
Expand Down

0 comments on commit c8ec90a

Please sign in to comment.