mirror of
https://github.com/SabreTools/NDecrypt.git
synced 2026-09-24 15:55:01 +00:00
Make Core an unpublished package
This commit is contained in:
44
.github/workflows/build_nupkg.yml
vendored
Normal file
44
.github/workflows/build_nupkg.yml
vendored
Normal 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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user