File tree 10 files changed +556
-36
lines changed
10 files changed +556
-36
lines changed Original file line number Diff line number Diff line change
1
+ * @ tagshelfsrl/llvm
Original file line number Diff line number Diff line change
1
+ name : " Nuget"
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ name :
7
+ required : false
8
+ type : string
9
+ push :
10
+ default : false
11
+ required : false
12
+ type : boolean
13
+ version :
14
+ required : false
15
+ type : string
16
+ default : v0.0.0-ci
17
+ host :
18
+ required : false
19
+ type : string
20
+ secrets :
21
+ token :
22
+ required : false
23
+ nuget :
24
+ required : false
25
+
26
+ jobs :
27
+ release :
28
+ name : Release
29
+ runs-on : ubuntu-latest
30
+ steps :
31
+ - name : Checkout
32
+ uses : actions/checkout@v4
33
+ - name : Set VERSION variable from tag
34
+ run : |
35
+ TAG=${{ inputs.version }}
36
+ echo "VERSION=${TAG#v}" >> $GITHUB_ENV
37
+ - name : Build
38
+ run : dotnet build --configuration Release /p:Version=${VERSION}
39
+ - name : Test
40
+ run : dotnet test --configuration Release /p:Version=${VERSION} --no-build
41
+ - name : Pack
42
+ if : inputs.push
43
+ run : dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
44
+ - name : Push
45
+ if : inputs.push
46
+ run : dotnet nuget push ${{inputs.name}}.${VERSION}.nupkg -k ${{secrets.nuget}} -s ${{ inputs.host }}
Original file line number Diff line number Diff line change
1
+ name : " On PR"
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ - development
8
+
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11
+ cancel-in-progress : true
12
+
13
+ jobs :
14
+ build :
15
+ uses : ./.github/workflows/nuget.yml
Original file line number Diff line number Diff line change
1
+ name : " On Push/Merge"
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - development
8
+
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11
+ cancel-in-progress : true
12
+
13
+ jobs :
14
+ build :
15
+ uses : ./.github/workflows/nuget.yml
16
+
17
+ release :
18
+ needs : [build]
19
+ uses : ./.github/workflows/semver.yml
20
+ secrets :
21
+ token : ${{secrets.PAT_TOKEN}}
22
+
Original file line number Diff line number Diff line change
1
+ name : " On Tag Pushed"
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*
7
+
8
+ jobs :
9
+ build :
10
+ uses : ./.github/workflows/nuget.yml
11
+ secrets :
12
+ nuget : ${{secrets.NUGET_TOKEN}}
13
+ with :
14
+ name : TagShelf.Alfred.ApiWrapper
15
+ host : https://api.nuget.org/v3/index.json
16
+ push : true
17
+ version : ${{github.ref_name}}
Original file line number Diff line number Diff line change
1
+ name : " SemVer"
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ nodeVersion :
7
+ type : string
8
+ default : 20
9
+ secrets :
10
+ token :
11
+ required : false
12
+
13
+ jobs :
14
+ release :
15
+ name : Release
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+ persist-credentials : false
23
+ - name : Setup Node.js
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : ${{ inputs.nodeVersion }}
27
+ - name : Install dependencies
28
+ run : npm install -g semantic-release @semantic-release/github @semantic-release/git @semantic-release/changelog
29
+ - name : Release
30
+ run : npx semantic-release
31
+ env :
32
+ CI : true
33
+ GH_TOKEN : ${{ secrets.token == '' && secrets.GITHUB_TOKEN || secrets.token }}
34
+ GITHUB_TOKEN : ${{ secrets.token == '' && secrets.GITHUB_TOKEN || secrets.token }}
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches": [
3
+ {name: 'master'}
4
+ ],
5
+ "plugins": [
6
+ "@semantic-release/commit-analyzer",
7
+ "@semantic-release/release-notes-generator",
8
+ "@semantic-release/git",
9
+ "@semantic-release/github"
10
+ ]
11
+ }
Original file line number Diff line number Diff line change 5
5
<ImplicitUsings >disable</ImplicitUsings >
6
6
<Nullable >disable</Nullable >
7
7
<PackageId >TagShelf.Alfred.ApiWrapper</PackageId >
8
- <Version >0.2.0 </Version >
8
+ <Version >0.2.1 </Version >
9
9
<
Authors >Raúl Roa (
[email protected] )</
Authors >
10
10
<Company >Tagshelf</Company >
11
11
<Description >A comprehensive .NET library designed to facilitate seamless interactions with the Alfred API.</Description >
12
12
<PackageTags >Alfred;API;Wrapper;.NET</PackageTags >
13
13
<RepositoryUrl >https://github.com/tagshelfsrl/dotnet-alfred-api-wrapper</RepositoryUrl >
14
+ <RepositoryType >git</RepositoryType >
14
15
<PackageLicenseExpression >MIT</PackageLicenseExpression >
15
16
<PackageReleaseNotes >Introducing AccountDomain with webhook setup support. See https://github.com/tagshelfsrl/dotnet-alfred-api-wrapper/releases for more details.</PackageReleaseNotes >
16
17
</PropertyGroup >
Original file line number Diff line number Diff line change 6
6
<Nullable >enable</Nullable >
7
7
</PropertyGroup >
8
8
<ItemGroup >
9
- <PackageReference Include =" TagShelf.Alfred.ApiWrapper" Version =" 0.2.0" />
9
+ <PackageReference Include =" TagShelf.Alfred.ApiWrapper" Version =" [ 0.2.0,) " />
10
10
</ItemGroup >
11
11
12
12
</Project >
You can’t perform that action at this time.
0 commit comments