From fbbcf231f072c82b431bcf4cbb60521ed889c141 Mon Sep 17 00:00:00 2001 From: Dave Curylo Date: Fri, 24 Sep 2021 17:13:17 -0400 Subject: [PATCH] Adds AzureTableArchiver nuget package publishing. --- .github/workflows/build-and-test.yml | 2 +- .github/workflows/pack-and-publish.yaml | 28 ++++++++++++++++++++ AzureTableArchiver/AzureTableArchiver.fsproj | 13 +++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pack-and-publish.yaml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index bea3de7..5109438 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: 5.0.102 + dotnet-version: 5.0.401 - name: Restore dependencies run: dotnet restore - name: Build diff --git a/.github/workflows/pack-and-publish.yaml b/.github/workflows/pack-and-publish.yaml new file mode 100644 index 0000000..983c9f3 --- /dev/null +++ b/.github/workflows/pack-and-publish.yaml @@ -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 }} diff --git a/AzureTableArchiver/AzureTableArchiver.fsproj b/AzureTableArchiver/AzureTableArchiver.fsproj index 3abd79b..0516f15 100755 --- a/AzureTableArchiver/AzureTableArchiver.fsproj +++ b/AzureTableArchiver/AzureTableArchiver.fsproj @@ -3,8 +3,19 @@ net5.0;netstandard2.1 AzureTableArchiver + Dave Curylo + 2021 Dave Curylo + https://github.com/Azure/azure-table-archiver + Library to archive, backup, and restore StorageAccount and CosmosDB tables to Blob Containers. + https://github.com/Azure/azure-table-archiver + azure storage cosmos + LICENSE + + + + @@ -16,6 +27,8 @@ + +