diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef24ffa..33e7e08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,9 +37,6 @@ jobs: - if: steps.version_bump.outputs.wasBumped == 'true' name: Create the nuget package run: dotnet pack --configuration Release Oxide.Ext.GamingApi --no-restore - - if: steps.version_bump.outputs.wasBumped == 'true' - name: Publish the nuget package to GitHub registry - run: dotnet nuget push Oxide.Ext.GamingApi\bin\Release\Oxide.Ext.GamingApi.*.nupkg --api-key ${{secrets.NUGET_AUTH_TOKEN}} - if: steps.version_bump.outputs.wasBumped == 'true' name: Create GH release id: create_release @@ -59,12 +56,15 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - file: "./Oxide.Ext.GamingApi/bin/Release/Oxide.Ext.GamingApi.dll;./Oxide.Ext.GamingApi/bin/Release/NATS.Client.dll;./Oxide.Ext.GamingApi/bin/Release/RustGameAPI.dll;./Oxide.Ext.GamingApi/bin/Release/Newtonsoft.Json.dll" # Separated by ; + file: "./Oxide.Ext.GamingApi/bin/Release/net461/Oxide.Ext.GamingApi.dll;./Oxide.Ext.GamingApi/bin/Release/net461/NATS.Client.dll;./Oxide.Ext.GamingApi/bin/Release/net461/RustGameAPI.dll;./Oxide.Ext.GamingApi/bin/Release/net461/Newtonsoft.Json.dll" release_id: ${{ steps.create_release.outputs.id }} overwrite: true verbose: true draft: false update_latest_release: true + - if: steps.version_bump.outputs.wasBumped == 'true' + name: Publish the nuget package to GitHub registry + run: dotnet nuget push Oxide.Ext.GamingApi\bin\Release\Oxide.Ext.GamingApi.*.nupkg --api-key ${{secrets.NUGET_AUTH_TOKEN}} - if: steps.version_bump.outputs.wasBumped == 'true' name: Create Pull Request with bumped version uses: peter-evans/create-pull-request@v3