|
|
@ -86,18 +86,26 @@ jobs:
|
|
|
|
pip install -r scripts/requirements.txt
|
|
|
|
pip install -r scripts/requirements.txt
|
|
|
|
- name: "📦 Asset creation"
|
|
|
|
- name: "📦 Asset creation"
|
|
|
|
run: |
|
|
|
|
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
|
|
|
|
# The output path matches the final deployment path at spec.matrix.org
|
|
|
|
scripts/dump-swagger.py \
|
|
|
|
scripts/dump-swagger.py \
|
|
|
|
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
|
|
|
|
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
|
|
|
|
--api application-service \
|
|
|
|
--api application-service \
|
|
|
|
|
|
|
|
-r "$RELEASE" \
|
|
|
|
-o spec/application-service-api/api.json
|
|
|
|
-o spec/application-service-api/api.json
|
|
|
|
scripts/dump-swagger.py \
|
|
|
|
scripts/dump-swagger.py \
|
|
|
|
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
|
|
|
|
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
|
|
|
|
--api client-server \
|
|
|
|
--api client-server \
|
|
|
|
|
|
|
|
-r "$RELEASE" \
|
|
|
|
-o spec/client-server-api/api.json
|
|
|
|
-o spec/client-server-api/api.json
|
|
|
|
scripts/dump-swagger.py \
|
|
|
|
scripts/dump-swagger.py \
|
|
|
|
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
|
|
|
|
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
|
|
|
|
--api push-gateway \
|
|
|
|
--api push-gateway \
|
|
|
|
|
|
|
|
-r "$RELEASE" \
|
|
|
|
-o spec/push-gateway-api/api.json
|
|
|
|
-o spec/push-gateway-api/api.json
|
|
|
|
tar -czf openapi.tar.gz spec
|
|
|
|
tar -czf openapi.tar.gz spec
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|