Skip to content

Commit

Permalink
Testing...
Browse files Browse the repository at this point in the history
  • Loading branch information
Jörgen Sigvardsson committed Nov 6, 2023
1 parent 2a6ea3d commit 667bfd1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ jobs:
runs-on: windows-latest
env:
COMMIT_SHA: ${{ github.sha || github.event.pull_request.head.sha }}
FILE_VERSION: ${{ github.ref || '0.0.0.0' }}
INFORMAL_VERSION: ${{ github.ref || 'NOT SET' }}
FILE_VERSION: '0.0.0.0'
INFORMAL_VERSION: 'NOT SET'
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
- run: Add-Content -Path $Env:GITHUB_ENV "${{ github.ref_name }}"
name: "Set version meta data"
if: github.event_name != 'release'
- run: |
dotnet pack --configuration Release --output ${{ env.NuGetDirectory }} --property:RepositoryCommit=${{ env.COMMIT_SHA }} --property:InformationalVersion=${{ env.INFORMAL_VERSION }} --property:AssemblyVersion=${{ env.FILE_VERSION }} --property:FileVersion=${{ env.FILE_VERSION }}
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 667bfd1

Please sign in to comment.