Save built swagger.json and yaml to the repo (#68)

This commit is contained in:
Anton Belyaev 2017-06-13 19:21:09 +03:00 committed by GitHub
parent bfbff72e5f
commit 65e1807329
2 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Dir for API portal deploy
web_deploy
out
# Logs
logs

View File

@ -12,6 +12,21 @@ build:
url: ${SLACK_WEBHOOK_URL}
username: "wercker"
release:
steps:
- script:
name: prepare release artifacts
code: mkdir -p out && cp ./swagger.{yaml,json} out/
- lordlothar99/git-push:
gh_oauth: ${GITHUB_API_TOKEN}
branch: release
basedir: out
message: Release ${WERCKER_GIT_OWNER}/${WERCKER_GIT_REPOSITORY}@${WERCKER_GIT_COMMIT}
after-steps:
- slack-notifier:
url: ${SLACK_WEBHOOK_URL}
username: "wercker"
deploy:
steps:
- lukevivier/gh-pages: