Skip to content

Commit c492108

Browse files
committed
WIP
1 parent 6b9c7a1 commit c492108

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/pr_closed.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,40 @@ jobs:
157157
run: npm publish --workspace internal/events
158158
env:
159159
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
160+
161+
162+
# publish-api-specs:
163+
name: Generate and publish API specs to APIM pre-release artefacts
164+
needs:
165+
- publish-event-schemas
166+
runs-on: ubuntu-latest
167+
permissions:
168+
contents: read
169+
packages: write
170+
strategy:
171+
matrix:
172+
apim-env: [internal-dev, int, ref, prod]
173+
steps:
174+
- name: Checkout code
175+
uses: actions/[email protected]
176+
177+
- name: Set up Node.js
178+
uses: actions/setup-node@v4
179+
with:
180+
node-version: 22
181+
182+
- name: Install dependencies
183+
working-directory: .
184+
run: npm ci
185+
shell: bash
186+
187+
- name: Generate OpenAPI specification
188+
run: |
189+
echo "Building env specific OAS spec"
190+
make build-json-oas-spec APIM_ENV=${{ matrix.APIM_ENV }}
191+
192+
- name: Upload API spec artefact
193+
uses: actions/upload-artifact@v4
194+
with:
195+
name: ${{ matrix.APIM_ENV }}-build-output
196+
path: ./build

0 commit comments

Comments
 (0)