-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
346 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
name: Cogito.Quartz | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup .NET 6.0 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Setup .NET 8.0 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/setup@v3 | ||
with: | ||
versionSpec: 5.x | ||
- name: Execute GitVersion | ||
uses: gittools/actions/gitversion/execute@v3 | ||
with: | ||
useConfigFile: true | ||
- name: Add NuGet Source (GitHub) | ||
shell: pwsh | ||
run: dotnet nuget add source --username USERNAME --password $env:GITHUB_TOKEN --store-password-in-clear-text --name alethic $env:GITHUB_REPOS | ||
env: | ||
GITHUB_REPOS: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: NuGet Restore | ||
run: dotnet restore Cogito.Quartz.sln | ||
- name: Build | ||
shell: pwsh | ||
run: | | ||
dotnet msbuild /m /bl ` | ||
/p:Configuration="Release" ` | ||
/p:Platform="Any CPU" ` | ||
/p:Version=${env:GitVersion_FullSemVer} ` | ||
/p:AssemblyVersion=${env:GitVersion_AssemblySemVer} ` | ||
/p:InformationalVersion=${env:GitVersion_InformationalVersion} ` | ||
/p:FileVersion=${env:GitVersion_AssemblySemFileVer} ` | ||
/p:PackageVersion=${env:GitVersion_FullSemVer} ` | ||
/p:RepositoryUrl="${env:GITHUB_SERVER_URL}/${env:GITHUB_REPOSITORY}.git" ` | ||
/p:PackageProjectUrl="${env:GITHUB_SERVER_URL}/${env:GITHUB_REPOSITORY}" ` | ||
/p:BuildInParallel=true ` | ||
/p:ContinuousIntegrationBuild=true ` | ||
Cogito.Quartz.dist.msbuildproj | ||
- name: Upload MSBuild Log | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: msbuild.binlog | ||
path: msbuild.binlog | ||
- name: Upload NuGet Packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nuget | ||
path: dist/nuget | ||
- name: Package Tests | ||
run: tar czvf tests.tar.gz tests | ||
working-directory: dist | ||
- name: Upload Tests | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests | ||
path: dist/tests.tar.gz | ||
release: | ||
name: Release | ||
if: github.event_name != 'pull_request' | ||
needs: | ||
- build | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/setup@v3 | ||
with: | ||
versionSpec: 5.x | ||
- name: Execute GitVersion | ||
id: GitVersion | ||
uses: gittools/actions/gitversion/execute@v3 | ||
with: | ||
useConfigFile: true | ||
- name: Download NuGet Packages | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: nuget | ||
path: dist/nuget | ||
- name: Create Release | ||
if: github.ref_type == 'tag' | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ steps.GitVersion.outputs.semVer }} | ||
allowUpdates: true | ||
omitBodyDuringUpdate: true | ||
artifacts: dist/nuget/*.nupkg,dist/nuget/*.snupkg,dist/doc.zip | ||
makeLatest: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Push NuGet (GitHub) | ||
if: github.event_name != 'pull_request' | ||
shell: pwsh | ||
run: dotnet nuget push dist/nuget/*.nupkg --source $env:GITHUB_REPOS --api-key $env:GITHUB_TOKEN --skip-duplicate | ||
env: | ||
GITHUB_REPOS: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Push NuGet | ||
if: github.ref_type == 'tag' | ||
shell: pwsh | ||
run: dotnet nuget push dist/nuget/*.nupkg --source $env:NUGET_REPOS --api-key $env:NUGET_TOKEN --skip-duplicate | ||
env: | ||
NUGET_REPOS: https://api.nuget.org/v3/index.json | ||
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,4 +258,6 @@ paket-files/ | |
|
||
# Python Tools for Visual Studio (PTVS) | ||
__pycache__/ | ||
*.pyc | ||
*.pyc | ||
|
||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<Project DefaultTargets="Publish"> | ||
<PropertyGroup> | ||
<DistDir Condition="'$(DistDir)' == ''">$(DISTDIR)</DistDir> | ||
<DistDir Condition="'$(DistDir)' == ''">$([System.IO.Path]::Combine('$(MSBuildThisFileDirectory)', 'dist'))</DistDir> | ||
<DistDir>$([System.IO.Path]::GetFullPath('$(DistDir)'))</DistDir> | ||
<SolutionFile>$([System.IO.Path]::Combine('$(MSBuildThisFileDirectory)', 'Cogito.Quartz.sln'))</SolutionFile> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">Any CPU</Platform> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<TargetsForPublish Include="$(SolutionFile)"> | ||
<Targets>dist%5Cdist-nuget:Publish</Targets> | ||
<Properties>PublishDir=$(DistDir)\nuget</Properties> | ||
</TargetsForPublish> | ||
<TargetsForPublish Include="$(SolutionFile)"> | ||
<Targets>dist%5Cdist-tests:Publish</Targets> | ||
<Properties>PublishDir=$(DistDir)\tests</Properties> | ||
</TargetsForPublish> | ||
</ItemGroup> | ||
|
||
<Target Name="Publish"> | ||
<ItemGroup> | ||
<_TargetsForPublish Include="@(TargetsForPublish)"> | ||
<Properties>%(TargetsForPublish.Properties)</Properties> | ||
</_TargetsForPublish> | ||
</ItemGroup> | ||
|
||
<MSBuild BuildInParallel="$(BuildInParallel)" ContinueOnError="false" Projects="@(_TargetsForPublish)" Targets="%(_TargetsForPublish.Targets)" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,39 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Authors>Jerome Haltom</Authors> | ||
<Company>Alethic Solutions</Company> | ||
<RepositoryUrl>https://github.com/alethic/Cogito.Quartz</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageProjectUrl>https://github.com/alethic/Cogito.Quartz</PackageProjectUrl> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<LangVersion>8.0</LangVersion> | ||
<LangVersion Condition=" '$(LangVersion)' == '' ">12.0</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="$(MSBuildThisFileDirectory)icon.png" Pack="true" PackagePath="" /> | ||
<Authors Include="Alethic Solutions" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Label="Copyright Info"> | ||
<ProductName>Cogito.Quartz</ProductName> | ||
<Authors>@(Authors, ',')</Authors> | ||
<CurrentYear Condition=" '$(CurrentYear)' == '' ">$([System.DateTime]::UtcNow.Year.ToString())</CurrentYear> | ||
<Copyright>Copyright © $(CurrentYear) @(Authors, ', ')</Copyright> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Version Info"> | ||
<DefaultMajorVersion>0</DefaultMajorVersion> | ||
<Version Condition=" '$(Version)' == '' ">$(DefaultMajorVersion).0.0-dev</Version> | ||
<AssemblyVersion Condition=" '$(AssemblyVersion)' == '' ">$(DefaultMajorVersion).0.0.0</AssemblyVersion> | ||
<FileVersion Condition=" '$(FileVersion)' == '' ">$(DefaultMajorVersion).0.0.0</FileVersion> | ||
<InformationalVersion Condition=" '$(InformationalVersion)' == '' ">$(DefaultMajorVersion).0.0.0</InformationalVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Package Info"> | ||
<RepositoryUrl Condition=" '$(RepositoryUrl)' == '' ">https://github.com/alethic/Cogito.Quartz.git</RepositoryUrl> | ||
<RepositoryType Condition=" '$(RepositoryType)' == '' ">git</RepositoryType> | ||
<PackageProjectUrl Condition=" '$(PackageProjectUrl)' == '' ">https://github.com/alethic/Cogito.Quartz</PackageProjectUrl> | ||
<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(Version)</PackageVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="IKVM.Core.MSBuild" Version="0.1.106"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
mode: Mainline | ||
mode: ContinuousDeployment | ||
assembly-file-versioning-format: '{Major}.{Minor}.{Patch}.{WeightedPreReleaseNumber ?? 0}' | ||
major-version-bump-message: '\+semver:\s?(major)' | ||
minor-version-bump-message: '\+semver:\s?(minor)' | ||
patch-version-bump-message: '\+semver:\s?(patch)' | ||
branches: | ||
main: | ||
regex: ^main$ | ||
tag: pre | ||
increment: Patch | ||
develop: | ||
regex: ^develop$ | ||
tag: dev | ||
increment: Minor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.100", | ||
"rollForward": "latestFeature" | ||
}, | ||
"msbuild-sdks": { | ||
"Microsoft.Build.NoTargets": "3.7.56" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.