diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 081e629..d5ac153 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,27 +30,27 @@ jobs: run: dotnet test --verbosity minimal working-directory: NinjaNye.SearchExtensions.Tests -# - name: Upload artifact -# uses: actions/upload-artifact@v4 -# with: -# name: build-output -# path: NinjaNye.SearchExtensions/bin/Release - -# deploy: -# needs: [build-and-test] -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v4 -# -# - name: Setup .NET -# uses: actions/setup-dotnet@v4 -# with: -# dotnet-version: '8.x' -# -# - name: Download artifact -# uses: actions/download-artifact@v4 -# with: -# name: build-output + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: build-output + path: NinjaNye.SearchExtensions + + deploy: + needs: [build-and-test] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: build-output - name: Pack run: dotnet pack -c Release --no-build --output nuget-packages @@ -58,6 +58,8 @@ jobs: - name: Log run: ls -al ./nuget-packages + working-directory: NinjaNye.SearchExtensions # - name: Push to NuGet # run: dotnet nuget push ./nuget-packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate +# working-directory: NinjaNye.SearchExtensions