-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93ee41c
commit a240fb6
Showing
4 changed files
with
106 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Release NuGet Packages" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" # Trigger on version tags (e.g., v1.0.0) | ||
|
||
jobs: | ||
release: | ||
name: Pack and Publish Packages to NuGet | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: ./.github/actions/setup-dotnet | ||
|
||
- name: Run Tests | ||
run: dotnet test --no-restore --verbosity normal | ||
working-directory: ./Aptos.Tests | ||
shell: bash | ||
|
||
- name: Pack Packages | ||
run: dotnet pack --configuration Release --no-build --output ./artifacts | ||
|
||
- name: Publish Packages to NuGet | ||
run: | | ||
dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<DefaultVersion>0.0.1</DefaultVersion> | ||
<DefaultTargetFrameworks>net8.0;net7.0;net6.0;netstandard2.1</DefaultTargetFrameworks> | ||
<DefaultTestingFrameworks>net8.0</DefaultTestingFrameworks> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<DefaultVersion>0.0.2</DefaultVersion> | ||
<DefaultTargetFrameworks>net8.0;net7.0;net6.0;netstandard2.1</DefaultTargetFrameworks> | ||
<DefaultTestingFrameworks>net8.0</DefaultTestingFrameworks> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="C#"> | ||
<LangVersion>latest</LangVersion> | ||
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> | ||
</PropertyGroup> | ||
<PropertyGroup Label="C#"> | ||
<LangVersion>latest</LangVersion> | ||
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters