mirror of
https://github.com/valitydev/swag-analytics.git
synced 2024-11-06 08:45:28 +00:00
1cbeab91b1
Co-authored-by: Rinat Arsaev <11846445+KrickRay@users.noreply.github.com>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
box:
|
|
id: node:14
|
|
username: ${DOCKER_ID}
|
|
password: ${DOCKER_PWD}
|
|
|
|
build:
|
|
steps:
|
|
- mvandervliet/npm-ci
|
|
- npm-test
|
|
- script:
|
|
name: build docsite
|
|
code: npm run build -- ${WERCKER_OUTPUT_DIR}
|
|
|
|
dev:
|
|
steps:
|
|
- mvandervliet/npm-ci
|
|
- npm-test
|
|
- internal/shell
|
|
|
|
release-epic:
|
|
steps:
|
|
- script:
|
|
name: prepare release artifacts for epic/* branch
|
|
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: Epic release ${WERCKER_GIT_OWNER}/${WERCKER_GIT_REPOSITORY}@${WERCKER_GIT_COMMIT}
|
|
|
|
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}
|
|
|
|
deploy:
|
|
steps:
|
|
- lukevivier/gh-pages:
|
|
repo: rbkmoney/anapi
|
|
token: ${GITHUB_API_TOKEN}
|