Adds AzureTableArchiver nuget package publishing.
This commit is contained in:
Родитель
c51190eda0
Коммит
fbbcf231f0
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 5.0.102
|
dotnet-version: 5.0.401
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: dotnet pack and publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [released]
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: 5.0.401
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
- name: Build
|
||||||
|
run: dotnet build -warnaserror --no-restore
|
||||||
|
- name: Test
|
||||||
|
run: dotnet test --no-build --verbosity normal
|
||||||
|
- name: Pack
|
||||||
|
run: VERSION=${GITHUB_REF##*/} dotnet pack -o . -c Release
|
||||||
|
- name: Publish
|
||||||
|
run: dotnet nuget push AzureTableArchiver.*.nupkg -s https://nuget.org -k ${{ secrets.NUGET_API_SECRET }}
|
|
@ -3,8 +3,19 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net5.0;netstandard2.1</TargetFrameworks>
|
<TargetFrameworks>net5.0;netstandard2.1</TargetFrameworks>
|
||||||
<RootNamespace>AzureTableArchiver</RootNamespace>
|
<RootNamespace>AzureTableArchiver</RootNamespace>
|
||||||
|
<Authors>Dave Curylo</Authors>
|
||||||
|
<Copyright>2021 Dave Curylo</Copyright>
|
||||||
|
<PackageProjectUrl>https://github.com/Azure/azure-table-archiver</PackageProjectUrl>
|
||||||
|
<Description>Library to archive, backup, and restore StorageAccount and CosmosDB tables to Blob Containers.</Description>
|
||||||
|
<RepositoryUrl>https://github.com/Azure/azure-table-archiver</RepositoryUrl>
|
||||||
|
<PackageTags>azure storage cosmos</PackageTags>
|
||||||
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="../LICENSE" Pack="true" PackagePath="" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Domain.fs" />
|
<Compile Include="Domain.fs" />
|
||||||
<Compile Include="EntitySerialization.fs" />
|
<Compile Include="EntitySerialization.fs" />
|
||||||
|
@ -16,6 +27,8 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Azure.Cosmos.Table" Version="1.0.8" />
|
<PackageReference Include="Microsoft.Azure.Cosmos.Table" Version="1.0.8" />
|
||||||
<PackageReference Include="Microsoft.Azure.Storage.DataMovement" Version="2.0.1" />
|
<PackageReference Include="Microsoft.Azure.Storage.DataMovement" Version="2.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
|
||||||
<PackageReference Include="System.Text.Json" Version="5.0.1" />
|
<PackageReference Include="System.Text.Json" Version="5.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче