Use tag name as the OpenAPI definition version (#1561)

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
pull/1585/head
Kévin Commaille 11 months ago committed by GitHub
parent 49957be1e3
commit 4a9bda9bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,18 +86,26 @@ jobs:
pip install -r scripts/requirements.txt
- name: "📦 Asset creation"
run: |
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
export RELEASE="${GITHUB_REF/refs\/tags\//}"
else
export RELEASE="unstable"
fi
# The output path matches the final deployment path at spec.matrix.org
scripts/dump-swagger.py \
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
--api application-service \
-r "$RELEASE" \
-o spec/application-service-api/api.json
scripts/dump-swagger.py \
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
--api client-server \
-r "$RELEASE" \
-o spec/client-server-api/api.json
scripts/dump-swagger.py \
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
--api push-gateway \
-r "$RELEASE" \
-o spec/push-gateway-api/api.json
tar -czf openapi.tar.gz spec
- name: "📤 Artifact upload"

@ -0,0 +1 @@
Use tag name as the OpenAPI definition version.
Loading…
Cancel
Save