Skip to content

Commit

Permalink
fix: deploy snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Aug 31, 2018
1 parent 3e48f7d commit 99a1b24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ jobs:
- add_ssh_keys:
fingerprints:
- "c3:de:eb:9c:82:70:a8:23:f3:4e:92:b8:07:d2:22:df"
- attach_workspace: *attach_options
- checkout: *post_checkout
- restore_cache: *root_package_lock_key
- run: npm run build:cdk
- run: npm run build:lib
- run: ./scripts/deploy/publish-artifacts.sh
Expand All @@ -85,7 +86,8 @@ jobs:
- add_ssh_keys:
fingerprints:
- "c3:de:eb:9c:82:70:a8:23:f3:4e:92:b8:07:d2:22:df"
- attach_workspace: *attach_options
- checkout: *post_checkout
- restore_cache: *root_package_lock_key
- run: ./scripts/deploy/publish-docs.sh


Expand Down Expand Up @@ -113,14 +115,14 @@ workflows:
- build_cdk
- build_mosaic
filters:
branches:
only:
- master
branches:
only:
- master
- docs_publish:
requires:
- test_unit
- build_mosaic
filters:
branches:
only:
- master
branches:
only:
- master
4 changes: 4 additions & 0 deletions scripts/deploy/publish-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ publishPackage() {
git config user.name "${commitAuthorName}"
git config user.email "${commitAuthorEmail}"

echo "Publish by user: ${commitAuthorName}"
echo "Git configuration has been updated to match the last commit author. Publishing now.."

echo "Commit message: ${buildCommitMessage}"
echo "Build Tag: ${buildTagName}"

git add -A
git commit --allow-empty -m "${buildCommitMessage}"
git tag "${buildTagName}"
Expand Down

0 comments on commit 99a1b24

Please sign in to comment.