From d40e8d8f4477642f139660248e64f6890c9f1f2c Mon Sep 17 00:00:00 2001 From: mohit Date: Thu, 12 Oct 2017 22:06:51 +0000 Subject: [PATCH] generate VERSION for github-release on make generate --- .github/pull_request_template.md | 1 - circle.yml | 3 +++ swagger.yml | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3330ccfc..469dd84f 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,3 +1,2 @@ - [ ] Update swagger.yml version - [ ] Run "make generate" -- [ ] After merging, add a github tag to your merge commit diff --git a/circle.yml b/circle.yml index 0c762064..f45c4829 100644 --- a/circle.yml +++ b/circle.yml @@ -30,5 +30,8 @@ deployment: - $HOME/ci-scripts/circleci/dapple-deploy $DAPPLE_URL $DAPPLE_USER $DAPPLE_PASS $APP_NAME dev-infra confirm-then-deploy - $HOME/ci-scripts/circleci/dapple-deploy $DAPPLE_URL $DAPPLE_USER $DAPPLE_PASS $APP_NAME production confirm-then-deploy - $HOME/ci-scripts/circleci/npm-publish $NPM_TOKEN gen-js/ + # create a VERSION file to push a github release + - cat ./swagger.yml | grep "^ version:" | cut -d":" -f2 | tr -d " " > ./VERSION + - $HOME/ci-scripts/circleci/github-release $GH_RELEASE_TOKEN general: build_dir: ../.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME diff --git a/swagger.yml b/swagger.yml index 5e4d7866..f9f81c31 100644 --- a/swagger.yml +++ b/swagger.yml @@ -4,9 +4,7 @@ info: description: Minimal Workflow orchestrator for AWS Batch # when changing the version here, make sure to # 1. re-run `make generate` to generate clients and server - # 2. merge the new clients, and, after merging, tag the commit with the version: - # git tag -a vX.Y.Z -m "vX.Y.Z" - # git push origin --tags + # 2. merge the new clients version: 0.6.3 x-npm-package: workflow-manager schemes: