File tree 4 files changed +41
-22
lines changed
4 files changed +41
-22
lines changed Original file line number Diff line number Diff line change 1
1
name : ci
2
2
3
- env :
4
- PROJECT_NAME : CppAst
5
-
6
3
on :
7
4
push :
8
5
paths-ignore :
@@ -19,24 +16,15 @@ jobs:
19
16
steps :
20
17
- name : Checkout
21
18
uses : actions/checkout@v2
19
+ with :
20
+ fetch-depth : 0
22
21
23
- - name : Install .NET 6
22
+ - name : Install .NET 6.0
24
23
uses : actions/setup-dotnet@v1
25
24
with :
26
25
dotnet-version : ' 6.0.x'
27
26
28
- - name : Build & test (Release)
27
+ - name : Build, Test, Pack, Publish
29
28
run : |
30
- dotnet test src -c Release
31
-
32
- - name : Pack
33
- run : dotnet pack src -c Release
34
-
35
- - name : Publish
36
- if : github.event_name == 'push'
37
- run : |
38
- if ( "${{github.ref}}" -match "^refs/tags/[0-9]+\.[0-9]+\.[0-9]+" ) {
39
- dotnet nuget push src\${{env.PROJECT_NAME}}\bin\Release\*.nupkg -s nuget.org -k ${{secrets.NUGET_TOKEN}}
40
- } else {
41
- echo "publish is only enabled by tagging with a release tag"
42
- }
29
+ dotnet tool install -g dotnet-releaser
30
+ dotnet-releaser run --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.GITHUB_TOKEN}} src/dotnet-releaser.toml
Original file line number Diff line number Diff line change 10
10
* .userosscache
11
11
* .sln.docstates
12
12
13
+ # Rider
14
+ .idea /
15
+
13
16
# User-specific files (MonoDevelop/Xamarin Studio)
14
17
* .userprefs
15
18
@@ -23,12 +26,15 @@ mono_crash.*
23
26
[Rr ]eleases /
24
27
x64 /
25
28
x86 /
29
+ [Ww ][Ii ][Nn ]32 /
26
30
[Aa ][Rr ][Mm ]/
27
31
[Aa ][Rr ][Mm ]64 /
32
+ build /
28
33
bld /
29
34
[Bb ]in /
30
35
[Oo ]bj /
31
36
[Ll ]og /
37
+ [Ll ]ogs /
32
38
33
39
# Visual Studio 2015/2017 cache/options directory
34
40
.vs /
@@ -60,6 +66,9 @@ project.lock.json
60
66
project.fragment.lock.json
61
67
artifacts /
62
68
69
+ # ASP.NET Scaffolding
70
+ ScaffoldingReadMe.txt
71
+
63
72
# StyleCop
64
73
StyleCopReport.xml
65
74
@@ -126,9 +135,6 @@ _ReSharper*/
126
135
* . [Rr ]e [Ss ]harper
127
136
* .DotSettings.user
128
137
129
- # JustCode is a .NET coding add-in
130
- .JustCode
131
-
132
138
# TeamCity is a build add-in
133
139
_TeamCity *
134
140
@@ -139,6 +145,9 @@ _TeamCity*
139
145
.axoCover /*
140
146
! .axoCover /settings.json
141
147
148
+ # Coverlet is a free, cross platform Code Coverage Tool
149
+ coverage. * [.json, .xml, .info ]
150
+
142
151
# Visual Studio code coverage results
143
152
* .coverage
144
153
* .coveragexml
@@ -347,3 +356,16 @@ healthchecksdb
347
356
348
357
# Backup folder for Package Reference Convert tool in Visual Studio 2017
349
358
MigrationBackup /
359
+
360
+ # Ionide (cross platform F# VS Code tools) working folder
361
+ .ionide /
362
+
363
+ # Rust
364
+ Cargo.lock
365
+
366
+ # Tmp folders
367
+ tmp /
368
+ [Tt ]emp /
369
+
370
+ # Remove artifacts produced by dotnet-releaser
371
+ artifacts-dotnet-releaser /
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<TargetFrameworks >netstandard2.0</TargetFrameworks >
4
- <VersionPrefix >0.8.0</VersionPrefix >
5
4
<PackageId >CppAst</PackageId >
6
5
<Description >CppAst is a .NET library providing a C/C++ parser for header files with access to the full AST, comments and macros</Description >
7
6
<Copyright >Alexandre Mutel</Copyright >
30
29
</ItemGroup >
31
30
32
31
<ItemGroup >
32
+ <PackageReference Include =" MinVer" Version =" 2.5.0" >
33
+ <PrivateAssets >all</PrivateAssets >
34
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
35
+ </PackageReference >
33
36
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.1.1" PrivateAssets =" All" />
34
37
</ItemGroup >
35
38
</Project >
Original file line number Diff line number Diff line change
1
+ # configuration file for dotnet-releaser
2
+ [msbuild ]
3
+ project = " ./CppAst.sln"
4
+ [github ]
5
+ user = " xoofx"
6
+ repo = " CppAst"
You can’t perform that action at this time.
0 commit comments