-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload swagger upload to bump.sh on release
- Loading branch information
Piotr Stachyra
committed
Dec 14, 2020
1 parent
8b34ca9
commit 275956f
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
sudo: false | ||
|
||
# Choose a build environment: | ||
dist: xenial | ||
dist: focal | ||
|
||
# Only clone the repository tip & track all branches | ||
git: | ||
|
@@ -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] | ||
|