Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frankhaugen authored Dec 14, 2023
1 parent 4897cb5 commit 6572c49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build (Conditional Versioning)
run: |
if [ "${{ github.event_name }}" = "pull_request" ] || [ "${{ github.event_name }}" = "push" ]; then
VERSION=${{ needs.prepare_versions.outputs.PreviewAssemblyVersion }}
elif [ "${{ github.event_name }}" = "release" ]; then
VERSION=${{ needs.prepare_versions.outputs.ReleaseVersion }}
fi
dotnet build --configuration Release --no-restore /p:Version=$VERSION
dotnet build --configuration Release /p:Version=$VERSION
- name: Test
run: dotnet test --configuration Release --no-build
- name: Upload Artifacts
Expand Down

0 comments on commit 6572c49

Please sign in to comment.