|
|
|
@ -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"
|
|
|
|
|