Skip to content

Commit e65a1f4

Browse files
committed
Update dotnet.yml
1 parent 3da39bb commit e65a1f4

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/dotnet.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: .NET build and test
22
env:
3-
LAST_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
4-
CURRENT_MAJOR_AND_MINOR_VERSION: 1.0
53
CURRENT_VERSION: 1.0.${{ github.run_number }}
4+
LAST_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
65

76
on:
87
push:
@@ -33,7 +32,7 @@ jobs:
3332
git push origin --tags
3433
pwd
3534
36-
deployTest:
35+
deployPreRelease:
3736
if: github.ref != 'refs/heads/main'
3837
runs-on: ubuntu-latest
3938
needs: build
@@ -47,10 +46,6 @@ jobs:
4746
run: dotnet restore
4847
- name: Build
4948
run: dotnet build --configuration Release --no-restore
50-
- name: AddTag
51-
run: |
52-
git tag ${{ env.CURRENT_VERSION }}
53-
git push origin --tags
5449
- name: Publish
5550
run: dotnet publish --configuration Release --no-restore
5651
- name: NugetPush
@@ -84,10 +79,6 @@ jobs:
8479
run: dotnet restore
8580
- name: Build
8681
run: dotnet build --configuration Release --no-restore
87-
- name: AddTag
88-
run: |
89-
git tag ${{ env.CURRENT_VERSION }}
90-
git push origin --tags
9182
- name: Publish
9283
run: dotnet publish --configuration Release --no-restore
9384
- name: NugetPush

0 commit comments

Comments
 (0)