1616 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
1717 PROVIDER : stackit
1818 PULUMI_GO_DEP_ROOT : ${{ github.workspace }}/..
19- PUBLISH_NPM : true
19+ # TODO: change to true if ready to release
20+ PUBLISH_NPM : false
2021 # NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
2122 # NUGET_FEED_URL: https://api.nuget.org/v3/index.json
2223 # PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
2627 # PUBLISH_NUGET: true
2728jobs :
2829 publish_binary :
29- name : publish
30+ name : Publish provider
3031 runs-on : ubuntu-latest
3132 steps :
3233 # TODO: remove when this repo is made public
5152 uses : ./.github/actions/gotools
5253 with :
5354 go-version : ${{ matrix.goversion }}
54- # - name: Set PreRelease Version
55- # run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV
5655 - uses : sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
5756 - uses : anchore/sbom-action/download-syft@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10
5857 - name : Debugging what was changed
7170 goversion :
7271 - 1.24.x
7372 publish_sdk :
74- name : Publish SDKs
73+ name : Publish SDKs to npm Registry, NuGet Gallery and Python Package Index
7574 runs-on : ubuntu-latest
7675 needs : publish_binary
7776 steps :
@@ -87,28 +86,15 @@ jobs:
8786 uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # tag=v4.2.2
8887 - name : Unshallow clone for tags
8988 run : git fetch --prune --unshallow --tags
90- - name : Install pulumictl
91- uses : jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # tag=v2.1.0
92- with :
93- repo : pulumi/pulumictl
94- - name : Install pulumi
95- uses : pulumi/actions@v6
9689 - name : Install Go Tools
9790 uses : ./.github/actions/gotools
9891 with :
9992 go-version : ${{ matrix.goversion }}
100- - name : Setup Node
101- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # tag=v6.0.0
102- with :
103- node-version : ${{matrix.nodeversion}}
104- # registry-url: ${{env.NPM_REGISTRY_URL}}
105- - name : Setup DotNet
106- uses : actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # tag=v5.0.0
93+ - name : Install Pulumi Tools
94+ uses : ./.github/actions/pulumitools
10795 with :
10896 dotnet-version : ${{matrix.dotnetverson}}
109- - name : Setup Python
110- uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # tag=v6.0.0
111- with :
97+ node-version : ${{matrix.nodeversion}}
11298 python-version : ${{matrix.pythonversion}}
11399 - name : Build SDK
114100 run : make build_${{ matrix.language }}
@@ -135,15 +121,16 @@ jobs:
135121 uses : JS-DevTools/npm-publish@7f8fe47b3bea1be0c3aec2b717c5ec1f3e03410b # tag=v4.1.1
136122 with :
137123 access : " public"
138- # token: ${{ env.NPM_TOKEN }}
139- token : ${{ secrets.PR_TOKEN }}
124+ # old way, we want to use Trusted publishers
125+ # token: ${{ env.NPM_TOKEN }}
140126 package : ${{github.workspace}}/sdk/nodejs/bin/package.json
141127 provenance : true
142128 - if : ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }}
143129 name : publish nuget package
144130 run : |
145131 dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_PUBLISH_KEY }}
146132 echo "done publishing packages"
133+ # TODO: publish go sdk to github
147134 strategy :
148135 fail-fast : true
149136 matrix :
0 commit comments