diff --git a/.github/workflows/release_package.yml b/.github/workflows/release_package.yml index d3b729d..dcfd293 100644 --- a/.github/workflows/release_package.yml +++ b/.github/workflows/release_package.yml @@ -9,26 +9,27 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Setup .NET uses: actions/setup-dotnet@v2 with: dotnet-version: '8.0.x' - + - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore - + run: dotnet build --no-restore --configuration Release + - name: Test - run: dotnet test --no-build + run: dotnet test --no-build --configuration Release - name: Pack run: | VERSION_TAG=${GITHUB_REF#refs/tags/v} - dotnet pack --no-build --configuration Release /p:PackageVersion=$VERSION_TAG + dotnet pack --no-build --configuration Release /p:PackageVersion=$VERSION_TAG # Pack in Release configuration env: GITHUB_REF: ${{ github.ref }} - name: Publish Package - run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} + run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} \ No newline at end of file