Skip to content

Commit 35ad4f2

Browse files
Trying the npm publish.
1 parent 272bd8a commit 35ad4f2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/stage-5-publish.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ jobs:
146146
asset_name: sdk-python-${{ inputs.version }}.zip
147147
asset_content_type: "application/gzip"
148148

149+
- name: "zip api OAS specification release asset"
150+
# Git hub pages needs a single tar called artifact inside the zip.
151+
working-directory: ./artifacts/api-oas-specification-${{ inputs.version }}
152+
run: zip -r ../api-oas-specification-${{ inputs.version }}.zip .
153+
shell: bash
154+
149155
- name: "Upload api OAS specification release asset"
150156
uses: actions/upload-release-asset@v1
151157
env:
@@ -162,6 +168,7 @@ jobs:
162168
publishnpm:
163169
name: "Publish npm packages to npm.pkg.github.com"
164170
runs-on: ubuntu-latest
171+
needs: [publish]
165172
steps:
166173
- name: "Get the artefacts"
167174
uses: actions/download-artifact@v4
@@ -203,7 +210,7 @@ jobs:
203210
success:
204211
name: "Success notification"
205212
runs-on: ubuntu-latest
206-
needs: [publish]
213+
needs: [publish,publishnpm]
207214
steps:
208215
- name: "Check prerequisites for notification"
209216
id: check

0 commit comments

Comments
 (0)