Skip to content

Commit

Permalink
ci: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Nov 26, 2024
1 parent 60c6314 commit 05df20c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ jobs:
- name: Build Version
run: dotnet build AIAssistant.sln -c Release --no-restore

# - name: Test Version
# run: |
# dotnet test AIAssistant.sln -c Release --no-restore --no-build
- name: Test Version
run: |
dotnet test AIAssistant.sln -c Release --no-restore --no-build
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
# https://github.com/dotnet/Nerdbank.GitVersioning/blob/main/doc/cloudbuild.md#github-actions
fetch-depth: 0 # doing deep clone and avoid shallow clone so nbgv can do its work.

- name: Set up GCC (Linux only)
if: runner.os == 'Linux'
Expand Down Expand Up @@ -122,7 +125,7 @@ jobs:
- uses: actions/checkout@v4
with:
# https://github.com/dotnet/Nerdbank.GitVersioning/blob/main/doc/cloudbuild.md#github-actions
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
fetch-depth: 0 # doing deep clone and avoid shallow clone so nbgv can do its work.
# Download the NuGet package created in the previous job and copy in the root
- uses: actions/download-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion AIAssistant.sln
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution items", "solution
.gitignore = .gitignore
docker-compose.yml = docker-compose.yml
global.json = global.json
readme.md = readme.md
README.md = README.md
.editorconfig = .editorconfig
Directory.Build.props = Directory.Build.props
version.json = version.json
Expand Down
30 changes: 30 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<RepositoryType>git</RepositoryType>
<PackageId>$(AssemblyName)</PackageId>
<Product>AIAssist</Product>
<Title>AIAssist</Title>
<Authors>Mehdi Hadeli</Authors>
<Description>Context aware AI coding assistant inside terminal to help in code development, code explanation, code refactor and review, bug fix and chat with supporting local and online language models.</Description>
<PackageTags>ai ollama gpt pgt-4o dotnet csharp azure-ai</PackageTags>
<PackageOutputPath>$(SolutionDir)nugets</PackageOutputPath>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageIcon>aiassist.png</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/mehdihadeli/AIAssist</PackageProjectUrl>
<RepositoryUrl>https://github.com/mehdihadeli/AIAssist</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>main</RepositoryBranch>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EnablePackageValidation>true</EnablePackageValidation>
<Copyright>Copyright (c) 2024 Mehdi Hadeli</Copyright>
</PropertyGroup>

<ItemGroup>
<!-- <None Include="assets/aiassist.png" Visible="false" Pack="true" PackagePath="" />-->
<None Include="LICENSE" Visible="false" Pack="true" PackagePath="" />
<None Include="README.md" Visible="false" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.146" PrivateAssets="all" Condition="!Exists('packages.config')"/>
</ItemGroup>

</Project>
File renamed without changes.
24 changes: 0 additions & 24 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,11 @@
<AnalysisModeSecurity>All</AnalysisModeSecurity>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="Meziantou.Analyzer" Condition="$(MSBuildProjectExtension) == '.csproj'" PrivateAssets="all">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<PropertyGroup>
<Product>AIAssist</Product>
<Title>AIAssist</Title>
<Authors>Mehdi Hadeli</Authors>
<Description>Context aware AI coding assistant inside terminal to help in code development, code explanation, code refactor and review, bug fix and chat with supporting local and online language models.</Description>
<PackageTags>ai ollama gpt pgt-4o dotnet csharp azure-ai</PackageTags>
<PackageOutputPath>$(SolutionDir)nugets</PackageOutputPath>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageIcon>aiassist.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/mehdihadeli/AIAssist</PackageProjectUrl>
<RepositoryUrl>https://github.com/mehdihadeli/AIAssist</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>main</RepositoryBranch>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>

<ItemGroup>
<None Include="..\readme.md" Pack="true" PackagePath="\" />
<!-- <None Include="..\assets\logo\aiassist.png" Pack="true" PackagePath="" />-->
</ItemGroup>

</Project>

0 comments on commit 05df20c

Please sign in to comment.