29
29
PYPI_USERNAME : " __token__"
30
30
PYPI_REPOSITORY_URL : " "
31
31
PUBLISH_PYPI : true
32
+
32
33
jobs :
33
34
publish_binary :
34
35
name : publish
35
36
runs-on : ubuntu-latest
36
37
steps :
37
38
- name : Checkout Repo
38
- uses : actions/checkout@v2
39
+ uses : actions/checkout@v3
39
40
- name : Unshallow clone for tags
40
41
run : git fetch --prune --unshallow --tags
41
42
- name : Install Go
42
- uses : actions/setup-go@v2
43
+ uses : actions/setup-go@v3
43
44
with :
44
45
go-version : ${{matrix.goversion}}
45
46
- name : Install pulumictl
46
- uses : jaxxstorm/action-install-gh-release@v1.5.0
47
+ uses : jaxxstorm/action-install-gh-release@v1.7.1
47
48
with :
48
49
repo : pulumi/pulumictl
49
50
- name : Set PreRelease Version
50
51
run : echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV
51
52
- name : Run GoReleaser
52
- uses : goreleaser/goreleaser-action@v2
53
+ uses : goreleaser/goreleaser-action@v3
53
54
with :
54
55
args : -p 3 release --rm-dist
55
56
version : latest
56
57
strategy :
57
58
fail-fast : true
58
59
matrix :
59
60
goversion :
60
- - 1.17.x
61
+ - 1.19.x
62
+
61
63
publish_sdk :
62
64
name : Publish SDKs
63
65
runs-on : ubuntu-latest
64
66
needs : publish_binary
65
67
steps :
66
68
- name : Checkout Repo
67
- uses : actions/checkout@v2
69
+ uses : actions/checkout@v3
70
+
68
71
- name : Unshallow clone for tags
69
72
run : git fetch --prune --unshallow --tags
73
+
70
74
- name : Install Go
71
- uses : actions/setup-go@v2
75
+ uses : actions/setup-go@v3
72
76
with :
73
77
go-version : ${{ matrix.goversion }}
78
+
74
79
- name : Install pulumictl
75
- uses : jaxxstorm/action-install-gh-release@v1.5.0
80
+ uses : jaxxstorm/action-install-gh-release@v1.7.1
76
81
with :
77
82
repo : pulumi/pulumictl
83
+
78
84
- name : Install Pulumi CLI
79
85
86
+
80
87
- name : Setup Node
81
- uses : actions/setup-node@v1
88
+ uses : actions/setup-node@v3
82
89
with :
83
90
node-version : ${{matrix.nodeversion}}
84
91
registry-url : ${{env.NPM_REGISTRY_URL}}
92
+
85
93
- name : Setup DotNet
86
- uses : actions/setup-dotnet@v1
94
+ uses : actions/setup-dotnet@v3
87
95
with :
88
96
dotnet-version : ${{matrix.dotnetverson}}
97
+
89
98
- name : Setup Python
90
- uses : actions/setup-python@v1
99
+ uses : actions/setup-python@v4
91
100
with :
92
101
python-version : ${{matrix.pythonversion}}
102
+
93
103
- name : Build SDK
94
- run : make build_${{ matrix.language }}_sdk
104
+ run : make build_${{ matrix.language }}
105
+
95
106
- name : Check worktree clean
96
107
run : |
97
108
git update-index -q --refresh
@@ -108,12 +119,14 @@ jobs:
108
119
user : ${{ env.PYPI_USERNAME }}
109
120
password : ${{ env.PYPI_PASSWORD }}
110
121
packages_dir : ${{github.workspace}}/sdk/python/bin/dist
122
+
111
123
- if : ${{ matrix.language == 'nodejs' && env.PUBLISH_NPM == 'true' }}
112
124
uses : JS-DevTools/npm-publish@v1
113
125
with :
114
126
access : " public"
115
127
token : ${{ env.NPM_TOKEN }}
116
128
package : ${{github.workspace}}/sdk/nodejs/bin/package.json
129
+
117
130
- if : ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }}
118
131
name : publish nuget package
119
132
run : |
@@ -123,7 +136,7 @@ jobs:
123
136
fail-fast : true
124
137
matrix :
125
138
dotnetversion :
126
- - 6.0.113
139
+ - 6.0.x
127
140
goversion :
128
141
- 1.19.x
129
142
language :
@@ -132,6 +145,6 @@ jobs:
132
145
- dotnet
133
146
- go
134
147
nodeversion :
135
- - 18 .x
148
+ - 16 .x
136
149
pythonversion :
137
- - " 3.10 "
150
+ - " 3.9 "
0 commit comments