|
|
|
@ -18,9 +18,9 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "➕ Setup Node"
|
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
|
with:
|
|
|
|
|
node-version: '14'
|
|
|
|
|
- name: "🔎 Run validator"
|
|
|
|
@ -32,7 +32,7 @@ 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
|
|
|
|
|
with:
|
|
|
|
@ -74,7 +74,7 @@ jobs:
|
|
|
|
|
needs: [calculate-baseurl]
|
|
|
|
|
steps:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "➕ Setup Python"
|
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
|
with:
|
|
|
|
@ -109,7 +109,7 @@ jobs:
|
|
|
|
|
-o spec/push-gateway-api/api.json
|
|
|
|
|
tar -czf openapi.tar.gz spec
|
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: openapi-artifact
|
|
|
|
|
path: openapi.tar.gz
|
|
|
|
@ -121,7 +121,7 @@ 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
|
|
|
|
|
- name: "➕ Install towncrier"
|
|
|
|
@ -129,7 +129,7 @@ jobs:
|
|
|
|
|
- name: "Generate changelog"
|
|
|
|
|
run: ./scripts/generate-changelog.sh vUNSTABLE
|
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: changelog-artifact
|
|
|
|
|
path: content/changelog/vUNSTABLE.md
|
|
|
|
@ -142,16 +142,16 @@ jobs:
|
|
|
|
|
if: ${{ always() }}
|
|
|
|
|
steps:
|
|
|
|
|
- name: "➕ Setup Node"
|
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
|
with:
|
|
|
|
|
node-version: '14'
|
|
|
|
|
- name: "➕ Setup Hugo"
|
|
|
|
|
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
|
|
|
|
|
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d
|
|
|
|
|
with:
|
|
|
|
|
hugo-version: '0.113.0'
|
|
|
|
|
extended: true
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "⚙️ npm"
|
|
|
|
|
run: |
|
|
|
|
|
npm i
|
|
|
|
@ -169,7 +169,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@v2
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: openapi-artifact
|
|
|
|
|
- name: "📝 Unpack the OpenAPI definitions in the right location"
|
|
|
|
@ -179,7 +179,7 @@ jobs:
|
|
|
|
|
- name: "📦 Tarball creation"
|
|
|
|
|
run: tar -czf spec.tar.gz spec
|
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: spec-artifact
|
|
|
|
|
path: spec.tar.gz
|
|
|
|
@ -190,10 +190,10 @@ jobs:
|
|
|
|
|
needs: [calculate-baseurl, build-spec]
|
|
|
|
|
steps:
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: "📥 Fetch built spec"
|
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: spec-artifact
|
|
|
|
|
|
|
|
|
@ -219,16 +219,16 @@ jobs:
|
|
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
|
|
|
steps:
|
|
|
|
|
- name: "➕ Setup Node"
|
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
|
with:
|
|
|
|
|
node-version: '14'
|
|
|
|
|
- name: "➕ Setup Hugo"
|
|
|
|
|
uses: peaceiris/actions-hugo@c03b5dbed22245418539b65eb9a3b1d5fdd9a0a6
|
|
|
|
|
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d
|
|
|
|
|
with:
|
|
|
|
|
hugo-version: '0.93.3'
|
|
|
|
|
extended: true
|
|
|
|
|
- name: "📥 Source checkout"
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: "⚙️ npm"
|
|
|
|
|
run: |
|
|
|
|
|
npm i
|
|
|
|
@ -240,7 +240,7 @@ jobs:
|
|
|
|
|
hugo --config config.toml,historical.toml --baseURL "/${GITHUB_REF/refs\/tags\//}" -d "spec"
|
|
|
|
|
|
|
|
|
|
- name: "📥 Spec definition download"
|
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: openapi-artifact
|
|
|
|
|
- name: "📝 Unpack the OpenAPI definitions in the right location"
|
|
|
|
@ -250,7 +250,7 @@ jobs:
|
|
|
|
|
- name: "📦 Tarball creation"
|
|
|
|
|
run: tar -czf spec-historical.tar.gz spec
|
|
|
|
|
- name: "📤 Artifact upload"
|
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: spec-historical-artifact
|
|
|
|
|
path: spec-historical.tar.gz
|
|
|
|
|