build workflow and spacing cleanup
This commit is contained in:
44
.github/workflows/build.yml
vendored
Normal file
44
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
compute-version:
|
||||||
|
name: Compute Version
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
version: ${{ steps.version.outputs.version }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- id: version
|
||||||
|
uses: paulhatch/semantic-version@v5.3.0
|
||||||
|
with:
|
||||||
|
tag_prefix: ''
|
||||||
|
major_pattern: 'Add project files'
|
||||||
|
minor_pattern: 'feature:'
|
||||||
|
bump_each_commit: true
|
||||||
|
enable_prerelease_mode: false
|
||||||
|
|
||||||
|
build-nuget:
|
||||||
|
name: Build Nuget package
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [compute-version]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- uses: actions/setup-dotnet@v4
|
||||||
|
|
||||||
|
- run: dotnet restore ./ --locked-mode
|
||||||
|
name: Restore Project
|
||||||
|
|
||||||
|
- run: dotnet pack -c Release -o ./pub ./ --no-restore -p:Version="${{ needs.compute-version.outputs.version }}"
|
||||||
|
name: Pack Project
|
||||||
|
|
||||||
|
- name: Push Project
|
||||||
|
run: dotnet nuget push -s https://ng.zznty.ru/v3/index.json -k ${{ secrets.NUGET_API_KEY }} ./pub/*.nupkg
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ obj/
|
|||||||
/packages/
|
/packages/
|
||||||
riderModule.iml
|
riderModule.iml
|
||||||
/_ReSharper.Caches/
|
/_ReSharper.Caches/
|
||||||
|
.vs/
|
@@ -99,7 +99,8 @@ public class ModListComponent : IRenderComponent
|
|||||||
case { IsCompletedSuccessfully: false }:
|
case { IsCompletedSuccessfully: false }:
|
||||||
{
|
{
|
||||||
TextDisabled("Failed to load plugins list");
|
TextDisabled("Failed to load plugins list");
|
||||||
if (_searchTask.Exception is null) return;
|
if (_searchTask.Exception is null)
|
||||||
|
return;
|
||||||
|
|
||||||
foreach (var exception in _searchTask.Exception.InnerExceptions)
|
foreach (var exception in _searchTask.Exception.InnerExceptions)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user