Skip to content

Commit 363ace4

Browse files
committed
add github action
1 parent 66a0a04 commit 363ace4

File tree

4 files changed

+74
-1
lines changed

4 files changed

+74
-1
lines changed

.github/FUNDING.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
github: chriskapp
3+
patreon: fusio
4+
custom: https://www.paypal.me/fusioapi

.github/workflows/ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
on:
3+
- pull_request
4+
- push
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
working-directory: src/Sdkgen.Client
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Setup dotnet
14+
uses: actions/setup-dotnet@v3
15+
with:
16+
dotnet-version: '6.0.x'
17+
- name: Install dependencies
18+
run: dotnet restore
19+
- name: Build
20+
run: dotnet build
21+
test:
22+
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
working-directory: tests/Sdkgen.Client.Tests
26+
services:
27+
httpbin:
28+
image: kennethreitz/httpbin
29+
ports:
30+
- 8081:80
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Setup dotnet
34+
uses: actions/setup-dotnet@v3
35+
with:
36+
dotnet-version: '6.0.x'
37+
- name: Install dependencies
38+
run: dotnet restore
39+
- name: Build
40+
run: dotnet build
41+
- name: Test with the dotnet CLI
42+
run: dotnet test

.github/workflows/publish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
packages: write
10+
contents: read
11+
defaults:
12+
run:
13+
working-directory: src/Sdkgen.Client
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: '6.0.x' # SDK Version to use.
19+
source-url: https://nuget.pkg.github.com/chriskapp/index.json
20+
env:
21+
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
- run: dotnet build --configuration Release
23+
- name: Create the package
24+
run: dotnet pack --configuration Release Sdkgen.Client
25+
- name: Publish the package to GPR
26+
run: dotnet nuget push sdkgen/bin/Release/*.nupkg

src/Sdkgen.Client/Sdkgen.Client.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
<PackageReference Include="RestSharp" Version="108.0.1" />
2020
</ItemGroup>
2121
<ItemGroup>
22-
<None Update="logo_white.png">
22+
<None Include="..\..\logo.png">
2323
<Pack>True</Pack>
2424
<PackagePath></PackagePath>
25+
<Link>logo.png</Link>
2526
</None>
2627
</ItemGroup>
2728
</Project>

0 commit comments

Comments
 (0)