Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/pr_closed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,40 @@ jobs:
run: npm publish --workspace internal/events
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}


publish-api-specs:
name: Generate and publish API specs to APIM pre-release artefacts
#if: needs.check-merge-or-workflow-dispatch.outputs.deploy == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
max-parallel: 1
matrix:
apim-env: [internal-dev, int, ref, prod]
steps:
- name: Checkout code
uses: actions/checkout@v5.0.0

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
working-directory: .
run: npm ci
shell: bash

- name: Generate OpenAPI specification
run: |
echo "Building env specific OAS spec"
make build-json-oas-spec APIM_ENV=${{ matrix.apim-env }}

- name: Upload API spec artefact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.apim-env }}-build-output
path: ./build
Loading