Skip to content

Commit 3bf2f1f

Browse files
committed
Fixed versioning and package push.
1 parent 3b3be6b commit 3bf2f1f

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/build-test.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@ jobs:
4747
# files: '*.cobertura.xml'
4848
#
4949
- name: Upload artifacts
50+
if: matrix.os == 'ubuntu-latest'
5051
uses: actions/upload-artifact@v3
5152
with:
5253
name: artifacts
5354
path: ./artifacts
5455
- name: Upload test results
5556
uses: actions/upload-artifact@v3
5657
with:
57-
name: test-results
58+
name: test-results-${{ matrix.os }}
5859
path: ./test-results
5960
if: ${{ always() }} # Always run this step even on failure
6061

@@ -63,6 +64,7 @@ jobs:
6364
runs-on: ubuntu-latest
6465
environment: testing
6566
needs: build
67+
name: Deploy Testing
6668
steps:
6769
- name: Setup .NET
6870
uses: actions/setup-dotnet@v3
@@ -75,7 +77,7 @@ jobs:
7577
name: artifacts
7678
path: ./artifacts
7779
- name: Push packages
78-
run: dotnet nuget push -s ${{vars.MYGET_URL}} -k ${{secrets.MYGET_API_KEY}} ./artifacts/*.*nupkg
80+
run: dotnet nuget push -s ${{vars.MYGET_URL}} -k ${{secrets.MYGET_API_KEY}} ./artifacts/*.nupkg
7981

8082
deploy-release:
8183
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
@@ -84,6 +86,7 @@ jobs:
8486
needs:
8587
- build
8688
- deploy-testing
89+
name: Deploy Production
8790
steps:
8891
- name: Setup .NET
8992
uses: actions/setup-dotnet@v3
@@ -96,4 +99,4 @@ jobs:
9699
name: artifacts
97100
path: ./artifacts
98101
- name: Push packages
99-
run: dotnet nuget push -s ${{vars.NUGET_URL}} -k ${{secrets.NUGET_API_KEY}} ./artifacts/*.*nupkg
102+
run: dotnet nuget push -s ${{vars.NUGET_URL}} -k ${{secrets.NUGET_API_KEY}} ./artifacts/*.nupkg

GitVersion.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
assembly-informational-format: '{SemVer}+{ShortSha}'
2+
continuous-delivery-fallback-tag: 'alpha'
3+
mode: 'ContinuousDeployment'
4+
branches:
5+
main:
6+
increment: Minor
7+
pull-request:
8+
tag: 'pr'
9+
ignore:
10+
sha: []

0 commit comments

Comments
 (0)