Skip to content

Commit

Permalink
Upload swagger upload to bump.sh on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed Dec 14, 2020
1 parent 8b34ca9 commit 275956f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sudo: false

# Choose a build environment:
dist: xenial
dist: focal

# Only clone the repository tip & track all branches
git:
Expand Down Expand Up @@ -49,6 +49,13 @@ jobs:
if: type != pull_request AND (tag =~ ^v OR commit_message =~ /TRAVIS_TRIGGER_RELEASE/)
name: "Executables"
script:
# Upload swagger to bump.sh
- gem install bump-cli
- sudo snap install yq
- yq r -j specifications/api/swagger.yaml > specifications/api/swagger.json
- bump validate --doc $BUMP_SH_DOC_ID --token $BUMP_SH_TOKEN specifications/api/swagger.json
- bump deploy --doc $BUMP_SH_DOC_ID --token $BUMP_SH_TOKEN specifications/api/swagger.json

# Fetch the builds from Hydra
- nvm install 12.18.3 && nvm use 12.18.3
- npm install --no-save [email protected] [email protected]
Expand Down

0 comments on commit 275956f

Please sign in to comment.