Skip to content

Commit e62664d

Browse files
authored
release(0.2.1): Merge to master
release(0.2.1): Merge to master
2 parents 02a02b8 + e0ff4a6 commit e62664d

File tree

10 files changed

+556
-36
lines changed

10 files changed

+556
-36
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @tagshelfsrl/llvm

.github/workflows/nuget.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 }}

.github/workflows/on-pr.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

.github/workflows/on-push-merge.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+

.github/workflows/on-tag.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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}}

.github/workflows/semver.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 }}

.releaserc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

AlfredApiWrapper/AlfredApiWrapper.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
<PackageId>TagShelf.Alfred.ApiWrapper</PackageId>
8-
<Version>0.2.0</Version>
8+
<Version>0.2.1</Version>
99
<Authors>Raúl Roa ([email protected])</Authors>
1010
<Company>Tagshelf</Company>
1111
<Description>A comprehensive .NET library designed to facilitate seamless interactions with the Alfred API.</Description>
1212
<PackageTags>Alfred;API;Wrapper;.NET</PackageTags>
1313
<RepositoryUrl>https://github.com/tagshelfsrl/dotnet-alfred-api-wrapper</RepositoryUrl>
14+
<RepositoryType>git</RepositoryType>
1415
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1516
<PackageReleaseNotes>Introducing AccountDomain with webhook setup support. See https://github.com/tagshelfsrl/dotnet-alfred-api-wrapper/releases for more details.</PackageReleaseNotes>
1617
</PropertyGroup>

AlfredApiWrapperTestApp/AlfredApiWrapperTestApp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="TagShelf.Alfred.ApiWrapper" Version="0.2.0" />
9+
<PackageReference Include="TagShelf.Alfred.ApiWrapper" Version="[0.2.0,)" />
1010
</ItemGroup>
1111

1212
</Project>

0 commit comments

Comments
 (0)