diff --git a/.github/workflows/release-obfuscator.yml b/.github/workflows/release-obfuscator.yml index cb2472b..5c01d61 100644 --- a/.github/workflows/release-obfuscator.yml +++ b/.github/workflows/release-obfuscator.yml @@ -26,14 +26,14 @@ jobs: run: dotnet pack -c Release 'src/${{ env.PROJECT }}/${{ env.PROJECT }}.csproj' - name: nuget sign run: echo "::warning::(TODO) code signing." - - name: upload artifact - uses: actions/upload-artifact@v4 - with: - name: ${{ env.PROJECT }}_nuget - path: ${{ env.ARTIFACT_PATH }} - if-no-files-found: error - env: - ARTIFACT_PATH: src/artifacts/package/release/${{ env.PROJECT }}.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg + # - name: upload artifact + # uses: actions/upload-artifact@v4 + # with: + # name: ${{ env.PROJECT }}_nuget + # path: ${{ env.NUPKG_PATH }} + # if-no-files-found: error + # env: + # NUPKG_PATH: src/artifacts/package/release/${{ env.PROJECT }}.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg - name: create git tag run: | git config user.name github-actions[bot] @@ -43,7 +43,9 @@ jobs: env: RELEASE_TAG: ${{ env.PROJECT }}_${{ steps.nbgv.outputs.NuGetPackageVersion }} - name: nuget push - run: echo "::warning::(TOFIX) enable nuget push." + run: dotnet nuget push ${{ env.NUPKG_PATH }} -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json + env: + NUPKG_PATH: src/artifacts/package/release/${{ env.PROJECT }}.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg - name: create release run: | PRERELEASE_FLAG=$([[ "${{ steps.nbgv.outputs.PrereleaseVersion }}" != "" ]] && echo "--prerelease" || echo "")