Skip to content

Commit 8c43a11

Browse files
committed
WIP Workflow
1 parent a8201b1 commit 8c43a11

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build_test_deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ jobs:
4646
- name: Build Release version
4747
run: dotnet build --no-restore --configuration Release /p:AssemblyVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} /p:FileVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} /p:InformationalVersion=${{ steps.gitversion.outputs.Sha }}
4848

49-
# - name: Run Tests
50-
# run: dotnet test --configuration Release --no-restore --verbosity normal --collect:"XPlat Code Coverage" --settings Marten.AspNetCore.Identity.Tests/coverlet.runsettings
49+
- name: Run Tests
50+
run: dotnet test --no-restore --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --settings Marten.AspNetCore.Identity.Tests/coverlet.runsettings
5151

5252
- name: Pack
53-
run: dotnet pack --no-build --output ./output --configuration Release /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }}
53+
run: dotnet pack --no-restore --no-build --configuration Release /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} --output ./output
5454

5555
- name: Upload Package to job as artificat
5656
uses: actions/upload-artifact@v2
@@ -61,7 +61,7 @@ jobs:
6161
if-no-files-found: error
6262

6363
- name: Upload Package to release
64-
# if: contains(github.ref, 'main')
64+
if: contains(github.ref, 'main')
6565
uses: svenstaro/upload-release-action@v1-release
6666
with:
6767
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -72,5 +72,5 @@ jobs:
7272
overwrite: true
7373

7474
- name: Upload Package to nuget
75-
# if: contains(github.ref, 'main')
75+
if: contains(github.ref, 'main')
7676
run: dotnet nuget push ./output/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key ${{ secrets.NUGET_KEY }}

0 commit comments

Comments
 (0)