Skip to content

Commit e9d22bb

Browse files
build dotnet sdk
1 parent 8d69e1a commit e9d22bb

File tree

6 files changed

+20
-22
lines changed

6 files changed

+20
-22
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ env:
2424
# NPM REGISTRY THEN ENSURE THE NPM_REGISTRY_URL IS CHANGED
2525
# NUGET_PUBLISH_KEY: ${{ YOUR NUGET PUBLISH KEY HERE }}
2626
NUGET_FEED_URL: https://api.nuget.org/v3/index.json
27-
PUBLISH_NUGET: false
27+
PUBLISH_NUGET: true
2828
# IF YOU NEED TO PUBLISH A PYPI PACKAGE THEN ENSURE AN PYPI_API_TOKEN
2929
# SECRET IS SET AND PUBLISH_PYPI: TRUE. IF YOU WANT TO PUBLISH TO AN ALTERNATIVE
3030
# PYPI REGISTRY THEN ENSURE THE PYPI_REPOSITORY_URL IS SET. IF YOU ARE USING AN API_TOKEN THEN
@@ -87,10 +87,10 @@ jobs:
8787
with:
8888
node-version: ${{matrix.nodeversion}}
8989
registry-url: ${{env.NPM_REGISTRY_URL}}
90-
# - name: Setup DotNet
91-
# uses: actions/setup-dotnet@v1
92-
# with:
93-
# dotnet-version: ${{matrix.dotnetversion}}
90+
- name: Setup DotNet
91+
uses: actions/setup-dotnet@v4
92+
with:
93+
dotnet-version: ${{matrix.dotnetversion}}
9494
- name: Setup Python
9595
uses: actions/setup-python@v1
9696
with:
@@ -126,22 +126,22 @@ jobs:
126126
access: "public"
127127
token: ${{ env.NPM_TOKEN }}
128128
package: ${{github.workspace}}/sdk/nodejs/bin/package.json
129-
# - if: ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }}
130-
# name: publish nuget package
131-
# run: |
132-
# dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_PUBLISH_KEY }}
133-
# echo "done publishing packages"
129+
- if: ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }}
130+
name: publish nuget package
131+
run: |
132+
dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_PUBLISH_KEY }}
133+
echo "done publishing packages"
134134
strategy:
135135
fail-fast: true
136136
matrix:
137-
# dotnetversion:
138-
# - 3.1.301
137+
dotnetversion:
138+
- 6.0.x
139139
goversion:
140140
- 1.22.x
141141
language:
142142
- nodejs
143143
- python
144-
# - dotnet
144+
- dotnet
145145
- go
146146
nodeversion:
147147
- 22.x

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ python_sdk: $(WORKING_DIR)/bin/$(PROVIDER)
110110
examples: go_example \
111111
nodejs_example \
112112
python_example \
113-
# dotnet_example
113+
dotnet_example
114114
# clean up package name in nodejs example
115115
sed -i -e 's|@pulumi/defang|@defang-io/pulumi-defang|' examples/nodejs/package.json examples/nodejs/index.ts
116116

@@ -150,8 +150,7 @@ down::
150150
build: provider schema sdks
151151

152152
.PHONY: sdks
153-
# sdks: go_sdk nodejs_sdk python_sdk dotnet_sdk
154-
sdks: go_sdk nodejs_sdk python_sdk
153+
sdks: go_sdk nodejs_sdk python_sdk dotnet_sdk
155154

156155
.PHONY: only_build
157156
# Required for the codegen action that runs in pulumi/pulumi
@@ -162,8 +161,7 @@ lint:
162161
golangci-lint run --fix --timeout 5m ./provider ./tests
163162

164163
.PHONY: install
165-
# install: install_nodejs_sdk install_dotnet_sdk
166-
install: install_nodejs_sdk
164+
install: install_nodejs_sdk install_dotnet_sdk
167165
cp $(WORKING_DIR)/bin/${PROVIDER} ${GOPATH}/bin
168166

169167
GO_TEST := go test -v -count=1 -cover -timeout 5m -parallel ${TESTPARALLELISM}

examples/dotnet/provider-defang.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88
<ItemGroup>
99
<PackageReference Include="Pulumi" Version="3.*" />
10-
<PackageReference Include="Pulumi.Defang" Version="1.1.0-alpha.1741219217+f2c92cbf.dirty" />
10+
<PackageReference Include="Pulumi.Defang" Version="1.1.0-alpha.1741220010+8d69e1ac" />
1111
</ItemGroup>
1212

1313
</Project>

examples/go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ go 1.20
44

55
require (
66
github.com/pulumi/pulumi/sdk/v3 v3.30.0
7-
example.com/pulumi-defang/sdk v1.1.0-alpha.1741219781+b4227d3d
7+
example.com/pulumi-defang/sdk v1.1.0-alpha.1741220010+8d69e1ac
88
)

examples/nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"dependencies": {
77
"typescript": "^4.0.0",
88
"@pulumi/pulumi": "^3.0.0",
9-
"@defang-io/pulumi-defang": "1.1.0-alpha.1741219781+b4227d3d"
9+
"@defang-io/pulumi-defang": "1.1.0-alpha.1741220010+8d69e1ac"
1010
}
1111
}

examples/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pulumi-defang==1.1.0-alpha.1741219781+b4227d3d
1+
pulumi-defang==1.1.0-alpha.1741220010+8d69e1ac
22
pulumi>=3.0.0,<4.0.0

0 commit comments

Comments
 (0)