diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e062491..f35e73b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,7 +16,7 @@ env:
jobs:
build:
- name: Build package
+ name: Build python package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -57,7 +57,7 @@ jobs:
path: dist/
retention-days: 7
- Release:
+ release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
needs: [build]
runs-on: ubuntu-latest
@@ -90,7 +90,7 @@ jobs:
twine upload --skip-existing ./**/*.tar.gz
env:
TWINE_USERNAME: PAT
- TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
+ TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload
- name: Release
@@ -101,3 +101,24 @@ jobs:
./**/*.whl
./**/*.tar.gz
./**/*.pdf
+
+ nuget:
+ if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
+ name: build, pack & publish
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup dotnet
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: 6.0.x
+
+ # Publish
+ - name: build and publish nuget package
+ run: |
+ dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/ansys/index.json"
+ version=$(find . -name VERSION -exec cat "{}" \;)
+ rm -rf nuget_package
+ dotnet pack csharp/Ansys.Api.Additive.csproj -c Release -o nuget_package -p:PackageVersion=${version}
+ dotnet nuget push nuget_package/*.nupkg --source github
diff --git a/.gitignore b/.gitignore
index f11e21a..4889420 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,7 @@ venv/
# autogenerated Python code
*pb2*.py
*pb2*.pyi
+
+# Compiled code
+bin/
+obj/
diff --git a/ansys/api/additive/VERSION b/ansys/api/additive/VERSION
index 6da28dd..d917d3e 100644
--- a/ansys/api/additive/VERSION
+++ b/ansys/api/additive/VERSION
@@ -1 +1 @@
-0.1.1
\ No newline at end of file
+0.1.2
diff --git a/csharp/Ansys.Api.Additive.csproj b/csharp/Ansys.Api.Additive.csproj
new file mode 100644
index 0000000..e188e68
--- /dev/null
+++ b/csharp/Ansys.Api.Additive.csproj
@@ -0,0 +1,22 @@
+
+
+
+ netstandard2.0
+ Ansys.Api.Additive
+ Additive Developers
+ Ansys Inc.
+ Protobuf definitions for Additive API
+ https://github.com/ansys/ansys-api-additive
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
+
diff --git a/csharp/nuget.config b/csharp/nuget.config
new file mode 100644
index 0000000..4656ca2
--- /dev/null
+++ b/csharp/nuget.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file