This commit is contained in:
ENikS 2023-03-10 08:13:15 -08:00
Родитель cffcb4f97f
Коммит 54f73e6b55
3 изменённых файлов: 9 добавлений и 57 удалений

1
.github/gitversion.yml поставляемый
Просмотреть файл

@ -1 +0,0 @@
mode: ContinuousDeployment

53
.github/workflows/cd-flow.yml поставляемый
Просмотреть файл

@ -6,55 +6,8 @@ on:
- 'release/**'
- 'prototype/**'
permissions:
packages: write
jobs:
build:
runs-on: windows-latest
env:
DOTNET_NOLOGO: '1'
DOTNET_CLI_TELEMETRY_OPTOUT: '1'
PackageOutputPath: '${{ github.workspace }}\package'
steps:
- name: Checkout Configuration
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: GitVersion
run: |
choco install gitversion.portable -pre -y --no-progress
gitversion /l console /output buildserver /config .github\gitversion.yml
# - name: Setup .NET Core SDK
# uses: actions/setup-dotnet@v3.0.3
# with:
# dotnet-version: '8.0'
- name: Build
env:
VersionMajor: '${{ env.GitVersion_Major }}'
VersionMinor: '${{ env.GitVersion_Minor }}'
VersionPatch: '${{ env.GitVersion_Patch }}'
Version: '${{ env.GitVersion_MajorMinorPatch }}'
FileVersion: '${{ env.GitVersion_AssemblySemFileVer }}'
PackageVersion: '${{ env.GitVersion_SemVer }}'
AssemblyVersion: '${{ env.GitVersion_AssemblySemVer }}'
InformationalVersion: '${{ env.GitVersion_InformationalVersion }}'
run: |
dotnet nuget add source "https://nuget.pkg.github.com/unitycontainer/index.json" -n github -u unitycontainer -p ${{secrets.GITHUB_TOKEN}} --store-password-in-clear-text
dotnet msbuild -property:Configuration=Release -verbosity:m -restore:True ${{ github.workspace }}\package.sln
- name: Test
run: |
dotnet test --no-restore --no-build --configuration Release ${{ github.workspace }}\package.sln
# - name: Publish Local Package
# run: |
# dotnet nuget push '${{ env.PackageOutputPath }}\*' --skip-duplicate --source github
- name: Label Fixed Issues
uses: gh-bot/fix-labeler@master
build-package-flow:
uses: unitycontainer/.github/.github/workflows/build-package-flow.yml@main
secrets: inherit

Просмотреть файл

@ -1,10 +1,10 @@
image: Visual Studio 2022
configuration: Release
# branches:
# only:
# - main
# - master
branches:
only:
- main
- master
install:
- choco install gitversion.portable -pre -y