Make Core an unpublished package

This commit is contained in:
Matt Nadareski
2024-11-14 21:59:04 -05:00
parent bb0b5a3d05
commit 33e62e046b
3 changed files with 50 additions and 0 deletions

44
.github/workflows/build_nupkg.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
name: Nuget Pack
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Pack
run: dotnet pack
- name: Upload NDecrypt Core package
uses: actions/upload-artifact@v4
with:
name: 'NDecrypt Core Package'
path: 'NDecrypt.Core/bin/Release/*.nupkg'
- name: Upload NDecrypt Core to rolling
uses: ncipollo/release-action@v1.14.0
with:
allowUpdates: True
artifacts: 'NDecrypt.Core/bin/Release/*.nupkg'
body: 'Last built commit: ${{ github.sha }}'
name: 'Rolling Release'
prerelease: True
replacesArtifacts: True
tag: "rolling"
updateOnlyUnreleased: True

View File

@@ -64,6 +64,9 @@ if [ $NO_BUILD = false ]; then
echo "Restoring Nuget packages"
dotnet restore
# Create Nuget Packages
dotnet pack NDecrypt.Core/NDecrypt.Core.csproj --output $BUILD_FOLDER
# Build Program
for FRAMEWORK in "${FRAMEWORKS[@]}"; do
for RUNTIME in "${RUNTIMES[@]}"; do

View File

@@ -55,6 +55,9 @@ if (!$NO_BUILD.IsPresent) {
Write-Host "Restoring Nuget packages"
dotnet restore
# Create Nuget Package
dotnet pack NDecrypt.Core\NDecrypt.Core.csproj --output $BUILD_FOLDER
# Build Program
foreach ($FRAMEWORK in $FRAMEWORKS) {
foreach ($RUNTIME in $RUNTIMES) {