diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a41e56d..0dae3aa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + ProjectName: 'AStar.Dev.Functional.Extensions' steps: - name: ๐Ÿงพ Checkout code @@ -22,11 +24,11 @@ jobs: - name: ๐Ÿ” Restore dependencies run: dotnet restore -# - name: ๐Ÿงช Run tests -# run: dotnet test --configuration Release --no-build + # - name: ๐Ÿงช Run tests + # run: dotnet test --configuration Release --no-build - name: ๐Ÿ“ฆ Pack NuGet package - run: dotnet pack --configuration Release --no-build --output ./nupkg + run: dotnet pack .\src\${{ env.ProjectName }}\${{ env.ProjectName }}.csproj --configuration Release --output ./nupkg - name: ๐Ÿš€ Publish to NuGet.org run: dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source https://int.nugettest.org/v3.index.json # https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}