Skip to content

Commit

Permalink
Testes com github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fosouzadev committed Sep 8, 2024
1 parent b14e199 commit ff46589
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
- name: Test
run: dotnet test --no-restore --no-build --verbosity normal -c Release
- name: Pack
run: dotnet pack --no-restore --no-build -c Release
- name: csproj version
run: sed -n 's:.*<Version>\(.*\)</Version>.*:\1:p' ./src/FoSouzaDev.Common.Domain/FoSouzaDev.Common.Domain.csproj
- name: Ls
run: echo $GITHUB_PATH
run: dotnet pack --no-restore --no-build -c Release -o ./package
- name: Get package version
run: PKG_VERSION=$(sed -n 's:.*<Version>\(.*\)</Version>.*:\1:p' ./src/FoSouzaDev.Common.Domain/FoSouzaDev.Common.Domain.csproj); echo $PKG_VERSION
- name: Add package version to GITHUB_ENV
run: echo 'PKG_VERSION=$PKG_VERSION' >> $GITHUB_ENV
- name: Publish in nuget.org
run: ls; echo $PKG_VERSION

# ${{ secrets.NUGETORG }}

0 comments on commit ff46589

Please sign in to comment.