Skip to content

Commit

Permalink
get release version
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytroett authored Sep 19, 2021
1 parent 391587a commit eb1fb11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get release version
id: get_release_version
uses: battila7/get-version-action@v2.2.1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
Expand All @@ -18,9 +21,9 @@ jobs:
- name: Build
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test --no-build --no-restore -c Release --verbosity normal --logger trx --results-directory TestResults
run: dotnet test --no-build --no-restore -c Release --verbosity normal --logger trx --results-directory TestResults
- name: Build nupkg
run: dotnet pack --no-build --no-restore -c Release --output nupkgs
run: dotnet pack --no-build --no-restore -c Release --output nupkgs -p:PackageVersion="${{ steps.get_release_version.outputs.version-without-v }}"
- name: Upload Test Results
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit eb1fb11

Please sign in to comment.