|
|
|
@ -20,9 +20,9 @@ jobs:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "➕ Setup Node"
|
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: '18'
|
|
|
|
|
node-version: '20'
|
|
|
|
|
- name: "🔎 Run validator"
|
|
|
|
|
run: |
|
|
|
|
|
npx @redocly/cli@latest lint data/api/*/*.yaml
|
|
|
|
@ -34,7 +34,7 @@ jobs:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "➕ Setup Python"
|
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
with:
|
|
|
|
|
python-version: '3.9'
|
|
|
|
|
cache: 'pip'
|
|
|
|
@ -51,9 +51,9 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "➕ Setup Python"
|
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
with:
|
|
|
|
|
python-version: '3.9'
|
|
|
|
|
cache: 'pip'
|
|
|
|
@ -70,9 +70,9 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "➕ Setup Python"
|
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
with:
|
|
|
|
|
python-version: '3.9'
|
|
|
|
|
cache: 'pip'
|
|
|
|
@ -114,7 +114,7 @@ jobs:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "➕ Setup Python"
|
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
with:
|
|
|
|
|
python-version: '3.9'
|
|
|
|
|
cache: 'pip'
|
|
|
|
@ -152,7 +152,7 @@ jobs:
|
|
|
|
|
-o spec/server-server-api/api.json
|
|
|
|
|
tar -czf openapi.tar.gz spec
|
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: openapi-artifact
|
|
|
|
|
path: openapi.tar.gz
|
|
|
|
@ -166,13 +166,13 @@ jobs:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "➕ Setup Python"
|
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
- name: "➕ Install towncrier"
|
|
|
|
|
run: "pip install 'towncrier'"
|
|
|
|
|
- name: "Generate changelog"
|
|
|
|
|
run: ./scripts/generate-changelog.sh vUNSTABLE
|
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: changelog-artifact
|
|
|
|
|
path: content/changelog/vUNSTABLE.md
|
|
|
|
@ -185,11 +185,11 @@ jobs:
|
|
|
|
|
if: ${{ always() }}
|
|
|
|
|
steps:
|
|
|
|
|
- name: "➕ Setup Node"
|
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: '18'
|
|
|
|
|
node-version: '20'
|
|
|
|
|
- name: "➕ Setup Hugo"
|
|
|
|
|
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d
|
|
|
|
|
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
|
|
|
|
|
with:
|
|
|
|
|
hugo-version: '0.113.0'
|
|
|
|
|
extended: true
|
|
|
|
@ -201,7 +201,7 @@ jobs:
|
|
|
|
|
npm run get-proposals
|
|
|
|
|
- name: "📥 Download generated changelog"
|
|
|
|
|
if: "needs.generate-changelog.result == 'success'"
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: changelog-artifact
|
|
|
|
|
path: content/changelog
|
|
|
|
@ -212,7 +212,7 @@ jobs:
|
|
|
|
|
# https://spec.matrix.org/latest/client-server-api/api.json
|
|
|
|
|
# Works for /unstable/ and /v1.1/ as well.
|
|
|
|
|
- name: "📥 Spec definition download"
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: openapi-artifact
|
|
|
|
|
- name: "📝 Unpack the OpenAPI definitions in the right location"
|
|
|
|
@ -222,7 +222,7 @@ jobs:
|
|
|
|
|
- name: "📦 Tarball creation"
|
|
|
|
|
run: tar -czf spec.tar.gz spec
|
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: spec-artifact
|
|
|
|
|
path: spec.tar.gz
|
|
|
|
@ -236,7 +236,7 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: "📥 Fetch built spec"
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: spec-artifact
|
|
|
|
|
|
|
|
|
@ -262,11 +262,11 @@ jobs:
|
|
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
|
|
|
steps:
|
|
|
|
|
- name: "➕ Setup Node"
|
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: '18'
|
|
|
|
|
node-version: '20'
|
|
|
|
|
- name: "➕ Setup Hugo"
|
|
|
|
|
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d
|
|
|
|
|
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
|
|
|
|
|
with:
|
|
|
|
|
# Cannot build the spec with Hugo 0.125.0 because of https://github.com/google/docsy/issues/1930
|
|
|
|
|
hugo-version: '0.124.1'
|
|
|
|
@ -284,7 +284,7 @@ jobs:
|
|
|
|
|
hugo --config config.toml,historical.toml --baseURL "/${GITHUB_REF/refs\/tags\//}" -d "spec"
|
|
|
|
|
|
|
|
|
|
- name: "📥 Spec definition download"
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: openapi-artifact
|
|
|
|
|
- name: "📝 Unpack the OpenAPI definitions in the right location"
|
|
|
|
@ -294,7 +294,7 @@ jobs:
|
|
|
|
|
- name: "📦 Tarball creation"
|
|
|
|
|
run: tar -czf spec-historical.tar.gz spec
|
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: spec-historical-artifact
|
|
|
|
|
path: spec-historical.tar.gz
|
|
|
|
|