File tree Expand file tree Collapse file tree 2 files changed +52
-17
lines changed Expand file tree Collapse file tree 2 files changed +52
-17
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ tags :
4
+ - " v[0-9]+.[0-9]+.[0-9]+"
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ timeout-minutes : 15
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v4
12
+ with :
13
+ fetch-depth : 0
14
+ - name : Verify commit exists in origin/main
15
+ run : git branch --remote --contains | grep origin/main
16
+ # - name: Extract release notes
17
+ # run: |
18
+ # git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: v(\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE-NOTES
19
+ - name : Set VERSION variable from tag
20
+ run : echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
21
+ - name : Build
22
+ run : dotnet build --configuration Release /p:Version=${VERSION}
23
+ - name : Test
24
+ run : dotnet test --configuration Release /p:Version=${VERSION} --no-build
25
+ - name : Pack
26
+ run : dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
27
+ - name : Push
28
+ run : dotnet nuget push *.${VERSION}.nupkg --source https://nuget.pkg.github.com/sqlkata/index.json --api-key ${GITHUB_TOKEN}
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
- <PropertyGroup >
3
- <TargetFrameworks >net8.0</TargetFrameworks >
4
- <OutputType >Library</OutputType >
5
- <IsPackable >false</IsPackable >
6
- <RootNamespace >SqlKata.Tests</RootNamespace >
7
- </PropertyGroup >
8
- <ItemGroup >
9
- <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 6.0.8" />
10
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.1.0" />
11
- <PackageReference Include =" MySql.Data" Version =" 8.0.30" />
12
- <PackageReference Include =" xunit" Version =" 2.3.1" />
13
- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.3.1" />
14
- </ItemGroup >
15
- <ItemGroup >
16
- <ProjectReference Include =" ..\QueryBuilder\QueryBuilder.csproj" />
17
- <ProjectReference Include =" ..\SqlKata.Execution\SqlKata.Execution.csproj" />
18
- </ItemGroup >
2
+ <PropertyGroup >
3
+ <TargetFrameworks >net8.0</TargetFrameworks >
4
+ <OutputType >Library</OutputType >
5
+ <IsPackable >false</IsPackable >
6
+ <RootNamespace >SqlKata.Tests</RootNamespace >
7
+ </PropertyGroup >
8
+ <ItemGroup >
9
+ <PackageReference Include =" Microsoft.Data.Sqlite"
10
+ Version =" 9.0.1" />
11
+ <PackageReference Include =" Microsoft.NET.Test.Sdk"
12
+ Version =" 17.12.0" />
13
+ <PackageReference Include =" MySql.Data"
14
+ Version =" 8.0.30" />
15
+ <PackageReference Include =" xunit"
16
+ Version =" 2.9.3" />
17
+ <PackageReference Include =" xunit.runner.visualstudio"
18
+ Version =" 3.0.1" />
19
+ </ItemGroup >
20
+ <ItemGroup >
21
+ <ProjectReference Include =" ..\QueryBuilder\QueryBuilder.csproj" />
22
+ <ProjectReference Include =" ..\SqlKata.Execution\SqlKata.Execution.csproj" />
23
+ </ItemGroup >
19
24
</Project >
You can’t perform that action at this time.
0 commit comments