add nuget packages workflow
Some checks failed
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Failing after 2m45s
Build / Build Nuget package (CringePlugins) (push) Failing after 2m44s
Build / Build Nuget package (NuGet) (push) Failing after 2m30s
Build / Build Nuget package (SharedCringe) (push) Has been cancelled
Build / Build Launcher (push) Has been cancelled
Some checks failed
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Failing after 2m45s
Build / Build Nuget package (CringePlugins) (push) Failing after 2m44s
Build / Build Nuget package (NuGet) (push) Failing after 2m30s
Build / Build Nuget package (SharedCringe) (push) Has been cancelled
Build / Build Launcher (push) Has been cancelled
This commit is contained in:
67
.github/workflows/build.yml
vendored
67
.github/workflows/build.yml
vendored
@@ -5,27 +5,18 @@ on:
|
|||||||
branches: [master]
|
branches: [master]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
compute-version:
|
||||||
name: Build Launcher
|
name: Compute Version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
outputs:
|
||||||
VPK_CHANNEL: win
|
version: ${{ steps.version.outputs.version }}
|
||||||
VPK_OUTPUT_DIR: Releases
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: actions/setup-dotnet@v3
|
- id: version
|
||||||
with:
|
|
||||||
dotnet-version: '8.0.x'
|
|
||||||
|
|
||||||
- run: dotnet restore CringeBootstrap/CringeBootstrap.csproj --locked-mode -r win-x64
|
|
||||||
name: Restore Project
|
|
||||||
|
|
||||||
- name: Git Version
|
|
||||||
id: version
|
|
||||||
uses: paulhatch/semantic-version@v5.3.0
|
uses: paulhatch/semantic-version@v5.3.0
|
||||||
with:
|
with:
|
||||||
tag_prefix: ''
|
tag_prefix: ''
|
||||||
@@ -33,7 +24,53 @@ jobs:
|
|||||||
minor_pattern: 'feature:'
|
minor_pattern: 'feature:'
|
||||||
bump_each_commit: true
|
bump_each_commit: true
|
||||||
|
|
||||||
- run: dotnet publish -c Release -o ./pub CringeBootstrap/CringeBootstrap.csproj --no-restore -p:Version="${{ steps.version.outputs.version }}" -r win-x64 --no-self-contained
|
build-nuget:
|
||||||
|
name: Build Nuget package
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [compute-version]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
project: [CringeBootstrap.Abstractions, NuGet, SharedCringe, CringePlugins]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- uses: actions/setup-dotnet@v4
|
||||||
|
|
||||||
|
- run: dotnet restore ${{ matrix.project }}/${{ matrix.project }}.csproj --locked-mode -r win-x64
|
||||||
|
name: Restore Project
|
||||||
|
|
||||||
|
- run: dotnet pack -c Release -o ./pub ${{ matrix.project }}/${{ matrix.project }}.csproj --no-restore -p:Version="${{ needs.compute-version.outputs.version }}" -r win-x64
|
||||||
|
name: Pack Project
|
||||||
|
|
||||||
|
- name: Install Sleet
|
||||||
|
run: dotnet tool install -g sleet
|
||||||
|
|
||||||
|
- name: Push Nuget Package
|
||||||
|
env:
|
||||||
|
SLEET_FEED_TYPE: s3
|
||||||
|
SLEET_FEED_PATH: https://dl.zznty.ru/
|
||||||
|
SLEET_FEED_BUCKETNAME: ${{ secrets.S3_BUCKET }}
|
||||||
|
SLEET_FEED_SERVICEURL: ${{ secrets.S3_ENDPOINT }}
|
||||||
|
SLEET_FEED_ACCESSKEYID: ${{ secrets.S3_KEY_ID }}
|
||||||
|
SLEET_FEED_SECRETACCESSKEY: ${{ secrets.S3_SECRET }}
|
||||||
|
run: ~/.dotnet/tools/sleet push ./pub
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build Launcher
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [compute-version]
|
||||||
|
env:
|
||||||
|
VPK_CHANNEL: win
|
||||||
|
VPK_OUTPUT_DIR: Releases
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- uses: actions/setup-dotnet@v4
|
||||||
|
|
||||||
|
- run: dotnet restore CringeBootstrap/CringeBootstrap.csproj --locked-mode -r win-x64
|
||||||
|
name: Restore Project
|
||||||
|
|
||||||
|
- run: dotnet publish -c Release -o ./pub CringeBootstrap/CringeBootstrap.csproj --no-restore -p:Version="${{ needs.compute-version.outputs.version }}" -r win-x64 --no-self-contained
|
||||||
id: publish
|
id: publish
|
||||||
name: Build Project
|
name: Build Project
|
||||||
|
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
20
NuGet/packages.lock.json
Normal file
20
NuGet/packages.lock.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"dependencies": {
|
||||||
|
"net8.0": {
|
||||||
|
"NuGet.Frameworks": {
|
||||||
|
"type": "Direct",
|
||||||
|
"requested": "[6.11.1, )",
|
||||||
|
"resolved": "6.11.1",
|
||||||
|
"contentHash": "plTZ3ariSWQVsFn2mk83SsdmSg1VpgIMTSZpP/eSE/NNQF02p+M9ItxAYeUZBMX+cQ2nFkSwxQRJ0/fkaV9Hbg=="
|
||||||
|
},
|
||||||
|
"NuGet.Versioning": {
|
||||||
|
"type": "Direct",
|
||||||
|
"requested": "[6.11.1, )",
|
||||||
|
"resolved": "6.11.1",
|
||||||
|
"contentHash": "YNn3BB71F+guJW42TbAhGcMh3gpyqFMZcPVD9pm5vcvGivTALtRely/VCPWQQ6JQ5PfwIrjPaJMO7VnqyeK3rg=="
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"net8.0/win-x64": {}
|
||||||
|
}
|
||||||
|
}
|
7
global.json
Normal file
7
global.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"sdk": {
|
||||||
|
"version": "8.0.0",
|
||||||
|
"rollForward": "latestFeature",
|
||||||
|
"allowPrerelease": false
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user