mirror of
https://github.com/valitydev/swag-questionary.git
synced 2024-11-06 08:35:19 +00:00
25 lines
623 B
YAML
25 lines
623 B
YAML
box: node:7
|
|
|
|
build:
|
|
steps:
|
|
- npm-install
|
|
- npm-test
|
|
- script:
|
|
name: build docsite
|
|
code: npm run build -- ${WERCKER_OUTPUT_DIR}
|
|
|
|
release-v:
|
|
steps:
|
|
- script:
|
|
name: prepare release artifacts for branch v1, v2, etc.
|
|
code: mkdir -p out && cp ./swagger.{yaml,json} out/
|
|
- lordlothar99/git-push:
|
|
gh_oauth: ${GITHUB_API_TOKEN}
|
|
branch: release/${WERCKER_GIT_BRANCH}
|
|
basedir: out
|
|
message: Release ${WERCKER_GIT_OWNER}/${WERCKER_GIT_REPOSITORY}@${WERCKER_GIT_COMMIT}
|
|
after-steps:
|
|
- slack-notifier:
|
|
url: ${SLACK_WEBHOOK_URL}
|
|
username: "wercker"
|