Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- uses: dsaltares/fetch-gh-release-asset@1.1.0
with:
version: 'tags/${{ matrix.release }}'
file: 'commitments-oapi.json'
target: 'deploy/releases/${{ matrix.release }}/commitments-oapi.json'
file: 'commitments-jsonrpc.json'
target: 'deploy/releases/${{ matrix.release }}/commitments-jsonrpc.json'
- name: Save releases (artifact)
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
name: releases
path: deploy/releases
- name: Bundle spec
run: "swagger-cli bundle ./commitments-oapi.yml -r -t yaml -o ./deploy/commitments-oapi.yml"
run: "swagger-cli bundle ./commitments-jsonrpc.yml -r -t yaml -o ./deploy/commitments-jsonrpc.yml"
- name: Publish to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
run: npm i -g @apidevtools/swagger-cli@4 @redocly/cli@1.0.0-beta.111

- name: Lint spec
run: redocly lint ./commitments-oapi.yml
run: redocly lint ./commitments-jsonrpc.yml

- name: Bundle spec
run: swagger-cli bundle commitments-oapi.yml -r -t yaml -o deploy/commitments-oapi.yml
run: swagger-cli bundle commitments-jsonrpc.yml -r -t yaml -o deploy/commitments-jsonrpc.yml


12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- uses: actions/setup-node@v2
- run: npm i -g @apidevtools/swagger-cli@4
- name: Bundle yaml spec
run: "swagger-cli bundle ./commitments-oapi.yml -r -t yaml -o ./deploy/commitments-oapi.yml"
run: "swagger-cli bundle ./commitments-jsonrpc.yml -r -t yaml -o ./deploy/commitments-jsonrpc.yml"
- name: Bundle json spec
run: "swagger-cli bundle ./commitments-oapi.yml -r -t json -o ./deploy/commitments-oapi.json"
run: "swagger-cli bundle ./commitments-jsonrpc.yml -r -t json -o ./deploy/commitments-jsonrpc.json"
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -32,17 +32,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./deploy/commitments-oapi.yml
asset_name: commitments-oapi.yml
asset_path: ./deploy/commitments-jsonrpc.yml
asset_name: commitments-jsonrpc.yml
asset_content_type: text/x-yaml
- name: Upload Json Bundle
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./deploy/commitments-oapi.json
asset_name: commitments-oapi.json
asset_path: ./deploy/commitments-jsonrpc.json
asset_name: commitments-jsonrpc.json
asset_content_type: application/json
- name: Rollback Release
if: failure()
Expand Down
Loading