From 52c9aa64e62bc475715418c7b419f7a048af806b Mon Sep 17 00:00:00 2001 From: Shiwei Zhang Date: Fri, 12 Jan 2024 19:17:38 +0800 Subject: [PATCH 1/5] chore: prepare for v0.2.0 Signed-off-by: Shiwei Zhang --- src/OrasProject.Oras/OrasProject.Oras.csproj | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/OrasProject.Oras/OrasProject.Oras.csproj b/src/OrasProject.Oras/OrasProject.Oras.csproj index e60bc49..12c3d7e 100644 --- a/src/OrasProject.Oras/OrasProject.Oras.csproj +++ b/src/OrasProject.Oras/OrasProject.Oras.csproj @@ -2,13 +2,17 @@ net8.0 OrasProject.Oras - 0.0.0-dev - https://github.com/oras-project/oras-dotnet - https://oras.land + 0.2.0-dev + Oras Project Oras package provides API to work with OCI - OCI, ORAS, Registry, Container, Image, Artifacts - true + Copyright (c) ORAS Project 2024 + https://oras.land README.md + https://github.com/oras-project/oras-dotnet + git + OCI, ORAS, registry, container, image, artifact + Apache-2.0 + true Library enable @@ -21,6 +25,6 @@ - - + + From f476cf855c2dacf09da48dc623d61aebec06052e Mon Sep 17 00:00:00 2001 From: Shiwei Zhang Date: Fri, 12 Jan 2024 19:37:50 +0800 Subject: [PATCH 2/5] docs: update readme Signed-off-by: Shiwei Zhang --- src/OrasProject.Oras/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/OrasProject.Oras/README.md b/src/OrasProject.Oras/README.md index 1d2f09b..8b93ebf 100644 --- a/src/OrasProject.Oras/README.md +++ b/src/OrasProject.Oras/README.md @@ -1,4 +1,8 @@ -# About +# ORAS .NET library -Provides an implementation for working with [Open Container](https://opencontainers.org/) -images and artifacts . +`oras-dotnet` provides an implementation for working with [Open Container](https://opencontainers.org/) images and artifacts. + +## Documentations + +- [API Documentation](https://oras-project.github.io/oras-dotnet/api/): API Documentation for the ORAS .NET library. +- [oras.land/client_libraries](https://oras.land/client_libraries/): Documentation for general ORAS libraries. \ No newline at end of file From c9754c90cfe9a729d5745c89be3d88210a3a736d Mon Sep 17 00:00:00 2001 From: Shiwei Zhang Date: Fri, 12 Jan 2024 19:38:48 +0800 Subject: [PATCH 3/5] docs: add release note Signed-off-by: Shiwei Zhang --- src/OrasProject.Oras/OrasProject.Oras.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OrasProject.Oras/OrasProject.Oras.csproj b/src/OrasProject.Oras/OrasProject.Oras.csproj index 12c3d7e..6066535 100644 --- a/src/OrasProject.Oras/OrasProject.Oras.csproj +++ b/src/OrasProject.Oras/OrasProject.Oras.csproj @@ -11,6 +11,7 @@ https://github.com/oras-project/oras-dotnet git OCI, ORAS, registry, container, image, artifact + See https://github.com/oras-project/oras-dotnet/releases for details Apache-2.0 true Library From 88bf8958592fe21e82d8027e5c7126ae548910d9 Mon Sep 17 00:00:00 2001 From: Shiwei Zhang Date: Fri, 12 Jan 2024 19:40:20 +0800 Subject: [PATCH 4/5] chore: update README.md for nuget Signed-off-by: Shiwei Zhang --- src/OrasProject.Oras/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrasProject.Oras/README.md b/src/OrasProject.Oras/README.md index 8b93ebf..768d511 100644 --- a/src/OrasProject.Oras/README.md +++ b/src/OrasProject.Oras/README.md @@ -1,6 +1,6 @@ # ORAS .NET library -`oras-dotnet` provides an implementation for working with [Open Container](https://opencontainers.org/) images and artifacts. +`oras-dotnet` provides a .NET implementation `OrasProject.Oras` for working with [Open Container](https://opencontainers.org/) images and artifacts. ## Documentations From 7838b879a2bd448ed4b4afb851ef7cc7f467761b Mon Sep 17 00:00:00 2001 From: Shiwei Zhang Date: Fri, 12 Jan 2024 20:15:25 +0800 Subject: [PATCH 5/5] feat: add publish workflow Signed-off-by: Shiwei Zhang --- .github/workflows/release-nuget.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release-nuget.yml diff --git a/.github/workflows/release-nuget.yml b/.github/workflows/release-nuget.yml new file mode 100644 index 0000000..5c025b6 --- /dev/null +++ b/.github/workflows/release-nuget.yml @@ -0,0 +1,37 @@ +# Copyright The ORAS Authors. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: release-nuget + +on: + push: + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up dotnet environment + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + - name: Extract Version + id: version + run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT + - name: Build nuget package + run: dotnet build ./src/OrasProject.Oras --configuration Release /p:PackageVersion=${{ steps.version.outputs.version }} + - name: Publish nuget package + run: dotnet nuget push ./src/OrasProject.Oras/bin/Release/OrasProject.Oras.${{ steps.version.outputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}