Skip to content

Commit

Permalink
chore(file-update): release.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Brault <alan.brault@visus.io>
  • Loading branch information
xaevik committed May 21, 2024
1 parent 828c919 commit f04d304
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,24 @@ jobs:
run: dotnet restore --verbosity Quiet
- name: Build
run: |
dotnet build -c release --no-restore \
-p:Version=${{ steps.gitversion.outputs.assemblySemVer }} \
-p:FileVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} \
dotnet build -c release --no-restore `
-p:Version=${{ steps.gitversion.outputs.assemblySemVer }} `
-p:FileVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} `
-p:InformationalVersion=${{ steps.gitversion.outputs.informationalVersion }}
- name: Test
run: dotnet test -c release --no-restore --no-build
- name: Pack
run: |
dotnet pack -c release --no-restore --no-build \
-p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }} \
dotnet pack -c release --no-restore --no-build `
-p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }} `
-p:PackageOutputPath=${{ runner.temp }}/packages
- name: Push
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ${{ runner.temp }}/packages
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.gitversion.outputs.assemblySemVer }}
draft: true
prerelease: true
# - name: Push
# run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json --skip-duplicate
# working-directory: ${{ runner.temp }}/packages

0 comments on commit f04d304

Please sign in to comment.