Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
[GradeUP] no unreleased changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nolte committed Jan 5, 2019
1 parent e1d0cf1 commit 71def03
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
name: generate CHANGELOG.md
command: |
LAST_VERSION="$(cat /tmp/workspaces/last_release.txt)"
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator:1.15.0.pre.beta --user ${CIRCLE_PROJECT_USERNAME} --project ${CIRCLE_PROJECT_REPONAME} --token ${GITHUB_TOKEN} --since-tag $LAST_VERSION
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator:1.15.0.pre.beta --user ${CIRCLE_PROJECT_USERNAME} --project ${CIRCLE_PROJECT_REPONAME} --token ${GITHUB_TOKEN} --since-tag $LAST_VERSION --no-unreleased
- store_artifacts:
path: /tmp/workspaces/changelog
- persist_to_workspace:
Expand Down Expand Up @@ -224,10 +224,6 @@ jobs:
- *run_task_add_gh_known_hosts
- attach_workspace:
at: /tmp/workspaces
- run:
name: debug
command: |
git status
- run:
name: merge to master
command: |
Expand All @@ -245,7 +241,22 @@ jobs:
CURRENT_VERSION="$(cat /tmp/workspaces/current_version.txt)"
git tag v$CURRENT_VERSION
git push origin v$CURRENT_VERSION
- run:
name: delete the release branch
command: |
git push origin master
git push origin --delete ${CIRCLE_BRANCH}
create_gh_release:
<<: *container_releasemanager
working_directory: /tmp/workspaces/build
steps:
- *run_task_prepare_jq
- *run_task_configure_git
- *run_task_add_key
- *run_task_add_gh_known_hosts
- attach_workspace:
at: /tmp/workspaces
- run:
name: create github pre-release
command: |
Expand All @@ -258,19 +269,13 @@ jobs:
--name "v${CURRENT_VERSION}" \
--description "${message}" \
--pre-release
- run:
name: delete the release branch
command: |
git push origin master
git push origin --delete ${CIRCLE_BRANCH}
workflows:
version: 2
build_and_test:
jobs:
- check_grade_up_build
- generate-changelog:
requires:
- check_grade_up_build

- builddocs:
requires:
- check_grade_up_build
Expand All @@ -296,4 +301,8 @@ workflows:
- /release\/v.*-pre/
requires:
- finializebuild
- generate-changelog
- generate-changelog:
requires:
- integrate_release
- create_gh_release:
- generate-changelog

0 comments on commit 71def03

Please sign in to comment.