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 }}
diff --git a/src/OrasProject.Oras/OrasProject.Oras.csproj b/src/OrasProject.Oras/OrasProject.Oras.csproj
index e60bc49..6066535 100644
--- a/src/OrasProject.Oras/OrasProject.Oras.csproj
+++ b/src/OrasProject.Oras/OrasProject.Oras.csproj
@@ -2,13 +2,18 @@
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
+ See https://github.com/oras-project/oras-dotnet/releases for details
+ Apache-2.0
+ true
Library
enable
@@ -21,6 +26,6 @@
-
-
+
+
diff --git a/src/OrasProject.Oras/README.md b/src/OrasProject.Oras/README.md
index 1d2f09b..768d511 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 a .NET implementation `OrasProject.Oras` 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