Skip to content

Commit

Permalink
Update releaseV2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
teamcrombie authored Aug 29, 2024
1 parent 9c571cc commit 508908f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/releaseV2.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish to NuGet

on:
push:
branches: [ master ]
release:
types: [published]

jobs:
build:
Expand All @@ -16,7 +16,15 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0'


- name: Get version from release
id: get_version
run: echo "##[set-output name=VERSION;]${{ github.event.release.tag_name }}"

- name: Set version in .csproj
run: |
sed -i 's/<Version>.*<\/Version>/<Version>${{ steps.get_version.outputs.VERSION }}<\/Version>/g' **/*.csproj
- name: Restore dependencies
run: dotnet restore

Expand All @@ -27,7 +35,7 @@ jobs:
run: dotnet test --no-restore --verbosity normal --filter "FullyQualifiedName!=Tests.Edit.SignTests.Sign_RequestSignature_ShouldProccessOk&FullyQualifiedName!=Tests.Edit.SignTests.Sign_ComplexTest_ShouldProcessOk"

- name: Pack the project
run: dotnet pack --configuration Release --no-build --output ./nupkg
run: dotnet pack --configuration Release --no-build --output ./artifacts

- name: Publish to NuGet
env:
Expand Down

0 comments on commit 508908f

Please sign in to comment.