Skip to content

Commit fce942b

Browse files
committed
Refactor all files to use ImanN namespace and Add github release workflow
1 parent 2b39737 commit fce942b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+163
-124
lines changed

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: 6.0.x
20+
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
24+
- name: Build
25+
run: dotnet build --no-restore
26+
27+
- name: Test
28+
run: dotnet test --no-build --verbosity normal
29+
30+
- name: Nuget Pack
31+
run: dotnet pack ./src/CoinMarketCapAPI/CoinMarketCapAPI.csproj -c Release
32+
33+
- name: Nuget Publish
34+
run: dotnet nuget push ./src/CoinMarketCapAPI/bin/Release/*.nupkg -k $NUGET_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
35+
env:
36+
NUGET_TOKEN: ${{ secrets.NUGET_API_KEY }}
37+
38+

src/Emun.CoinMarketCap/Emun.CoinMarketCap.csproj src/CoinMarketCapAPI/CoinMarketCapAPI.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5+
<RootNamespace>Emun.CoinMarketCap</RootNamespace>
56
</PropertyGroup>
67
<PropertyGroup>
78
<LangVersion>8.0</LangVersion>
File renamed without changes.

src/Emun.CoinMarketCap/Emun.CoinMarketCap.xml src/CoinMarketCapAPI/ImanN.CoinMarketCap.xml

+124-124
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)