月更
This commit is contained in:
11
NeuWPF/.github/dependabot.yml
vendored
Normal file
11
NeuWPF/.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "nuget" # See documentation for possible values
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
78
NeuWPF/.github/workflows/dotnet-desktop.yml
vendored
Normal file
78
NeuWPF/.github/workflows/dotnet-desktop.yml
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
# branches-ignore:
|
||||
# - 'archive'
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- 'LICENSE'
|
||||
pull_request:
|
||||
# branches-ignore:
|
||||
# - 'archive'
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- 'LICENSE'
|
||||
|
||||
jobs:
|
||||
build-SyminUI:
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
matrix:
|
||||
configuration: [Debug, Release]
|
||||
dotnet-version: ['6.0.x']
|
||||
# for create new releases
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup .NET Core SDK
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: ${{ matrix.dotnet-version }}
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --no-restore --configuration ${{ matrix.configuration }} --output bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}
|
||||
- name: Test
|
||||
run: dotnet test --no-restore --verbosity normal
|
||||
|
||||
# - name: Upload articraft - SyminData
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: SyminData-${{ matrix.configuration }}
|
||||
# path: bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}/SyminData.dll
|
||||
# - name: Upload articraft - SyminUI
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: SyminUI-${{ matrix.configuration }}
|
||||
# path: bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}/SyminUI.dll
|
||||
# - name: Upload articraft - SyminData - nupkg
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: SyminData-${{ matrix.configuration }}-nupkg
|
||||
# path: bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}/SyminData*.nupkg
|
||||
# - name: Upload articraft - SyminUI - nupkg
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: SyminUI-${{ matrix.configuration }}-nupkg
|
||||
# path: bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}/SyminUI*.nupkg
|
||||
- name: Upload articraft - All in One
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: SyminAllInOne-${{ matrix.configuration }}
|
||||
path: bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}
|
||||
|
||||
- name: Create Draft Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.configuration == 'Release' && matrix.dotnet-version == '6.0.x'
|
||||
# branch name can be from: GITHUB_REF#refs/heads/
|
||||
with:
|
||||
files: |
|
||||
bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}/SyminData.dll
|
||||
bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}/SyminUI.dll
|
||||
bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}/Symin*.nupkg
|
||||
|
||||
generate_release_notes: true
|
||||
draft: true
|
||||
Reference in New Issue
Block a user