Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
feat(Deploy): npm, GitHub Pages & GitHub Releases
Browse files Browse the repository at this point in the history
Refactored deployment process
  • Loading branch information
mevbg committed Apr 5, 2017
1 parent f188d92 commit 09a63ef
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 78 deletions.
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

25 changes: 18 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
language: node_js
node_js:
- node
script: bash ./deploy.sh
env:
global:
- ENCRYPTION_LABEL: ab10691b284c
- COMMIT_AUTHOR_EMAIL: metodiev.martin@gmail.com
script:
- printf 'configs/\nsrc/\n.npmignore\n.travis.yml\nCHANGELOG.md\nGruntfile.js\nbower.json\nLICENSE-MIT\npackage.json\nnode_modules/\n.gitignore\ndeployed*' > .gitignore
- printf '.npmignore\n.travis.yml\nCNAME' > .npmignore
- printf 'stickme.martinmetodiev.com' > CNAME
branches:
only:
- "/v\\d+\\.\\d+\\.\\d+/"
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
deploy:
provider: npm
- provider: npm
email: metodiev.martin@gmail.com
api_key: # …73e2f34c
secure: cXop3Qnx9YZNk9WbYUsKBtXbXRroyp5NfkHqeaCqgZ6OFPvyy7ZNZSR19snkL+iCeVa1SLGChCbomYer5VSF+9dbil7N7odqqBPEqlu4wcQ7fFZLPzJW+EUjlIjw26+2x29aP76R8h7PZdM/divCG7TJXHl5SLX3QePs4Hm/PMYF55dmq03UWlSrqQr4KaPY+Lti9TOUIpab03NtHXsPSrDBqp1YJP/UW/r8VUDwOLzD8s4mQIznor2fVJ/baEnGTt16CRZ5/00kvJHNucM/Sjo74Ibz0BzyPy24aDs4II6LQbjIisbGR8EaOgZ7Z2iXTcWWzNIjpg0PlsxDpC0ExJxi8Tqit9JkvZCRPV/fq649rbBQWt05BtE8oJQ6t6ClcE0bn9WBbZpQhnvf/POeER9NsGJkeoyj31aZr1S0NKrqFR/KfumtUJIQLzKB19gH7XK5arhjBTJ+XFx6f0hLmQAmFhB6TMhxkyJZi2X7M6a/32NBi5yBpWn1ltaPvY6piWJZUyvof7iVxaIMZwt76+2nZ2s0OGFJ8FCWNmZHpRYEINg9AjCI5aYbo7FrehpuHo2FP44HGsZft6IeBpVQ14yTvGjYzqOuE9MlJHYEJv1B99uD5m+5AI8cnf3gNL4+8d2uc0f0PLJVwhZLFikXyPFpVBYgGEFvWOadqmduloY=
on:
tags: true
all_branches: true
- provider: pages
skip_cleanup: true
github_token:
secure: pa4vJZcgYcxgZWRpjUQh4DMVRFJ83b6vwM50cFwCgVtEK9ZPpIeJ7/91Jn2zDaa3KbVUfJU0FQruaql6lJWQJBgksHKeNK0lUZb2PfV+IWc4zQ5DOnT1l9c83g5o2NUOSuqmm31L5CfQdu+m3GbsPVSh7/q+NUwPhwVduPomzOWv7BNSaUkiDRWaWX35Ibq2AtKrQCjzUlj/EraRFohRVpauJjPxyl6IcMvXaC06zlWHOe+UrT9I6g+q+GMO1x4LPejxWeij2MNeoYhQZjHCmwR6Toti14Xkyyc+ccEXDuU9jKc/vLqMKDnw9K9YZ74tTTQGcb84BvOVnKuHXZMjeZme/rRSOtKllIlBdZdijA7ClYhyyjzYREzuZfR2wKNKwZzfVpMb0jp1dujZg2q81C+m4fYbDvURtSOkPIqv+lV7YDQHSSiRrtFcAQ1EA5h1ENLAOb+iM6aVsFykBa48q32vp95VTL1cc5p/WfaA5Kw7fiTOBUecMFHOWr4uR5LEam1aMVy5qawHTMO/7Qw7bHXP8167eynn9JArS+uOcU36Y2ez3Yb3TLnblwkXRtq/Fqg2YeToD+onIHqNMLH+QbWX3rh9TCXYdSYKkpdSG09eftRjsWU4y1tXz178S/yVLb71ZQdONMGKyuA3CLcLdOmrn9uL2Pxk58arFytixO4=
on:
tags: true
- provider: releases
api_key:
secure: dDBwS3QDOzkPg0g5MMd2Z3oheCIfZbmjhdibRErUqLHzHMyO1rsuzM0cE8OnnAuH8PvCyv7VHI5XYAJHHqQA9DZo+jRtjMQ//WjU5uKWKvqL5ZW/tXZ/CvbDwLf+htlroSB9QsoF/rfs+z92wGFfJaY4dzJ+Mo35w9kee/J6vv3hp0tCWBpn6kkmojeaIvFjzCbadpnHV5R9tXLQzX+2NKC2fj+EoAvENhFSGH7UE/fjU9sQfe9jI9FKUZVpotNwr3G/L+rNfHI1RvA8AtQBlhzVaidHjs/sF165+Z79o+vz0fQbQDPrpJFV0sQpivyuDRqIQcvbyj+RDHdYK0xQ+Z0UqwmOEaDY7Wkih7COWIdc2IgdanWKHCqlyVJu6qu/QMJzPytaB+2sv4tvlwqw6AOy8+WuedfsVR6kATAyzFWXgaZS2kAOwuiwB9zfksuOIUe34DWofReq7RL9o7MTLkN49t52NGddNGj0nbifwjz00nzFG5mKuHU+SEizrFWNQdu7+BVH74nJleTWyVjci4R3HxMNiNIXLwUOr89+dAVPF48ECFdX6hGsVklIiAmz56IOqWhGf6wwajOTWyGw8viKcP0uLYdy46zf/nl0Ekx/SBFc1uGInvtnAlN1/lv9ZTWIZc9t66Ku5qXcs7yrddb0XMe7b3u383g7DNK2c3w=
skip_cleanup: true
on:
tags: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Fixed elements depending on the scroll position.

[![Built with Grunt](https://cdn.gruntjs.com/builtwith.svg)](http://gruntjs.com/) [![Travis](https://img.shields.io/travis/martinmethod/stickme.svg)](https://travis-ci.org/martinmethod/stickme) [![David](https://img.shields.io/david/dev/martinmethod/stickme.svg)](https://david-dm.org/martinmethod/stickme?type=dev) [![GitHub release](https://img.shields.io/github/release/martinmethod/stickme.svg)](https://github.com/martinmethod/stickme/releases/latest)
[![Built with Grunt](https://cdn.gruntjs.com/builtwith.svg)](http://gruntjs.com/) [![GitHub license](https://img.shields.io/badge/license-MIT-yellow.svg)](https://raw.githubusercontent.com/martinmethod/stickme/prod/LICENSE-MIT) [![Travis](https://img.shields.io/travis/martinmethod/stickme.svg)](https://travis-ci.org/martinmethod/stickme) [![David](https://img.shields.io/david/dev/martinmethod/stickme.svg)](https://david-dm.org/martinmethod/stickme?type=dev) [![GitHub release](https://img.shields.io/github/release/martinmethod/stickme.svg)](https://github.com/martinmethod/stickme/releases/latest) [![npm](https://img.shields.io/npm/v/stickme.svg)](https://www.npmjs.com/package/stickme) [![Bower](https://img.shields.io/bower/v/stickme.svg)](https://github.com/martinmethod/stickme)

## Description

Expand Down
4 changes: 1 addition & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
"dist/css/stickme.min.css.map"
],
"ignore": [
".travis.yml",
"deploy_key.enc",
"deploy.sh"
".travis.yml"
]
}
9 changes: 3 additions & 6 deletions configs/grunt/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,11 @@ module.exports = {
].join('&&')
},

domain: {
command: 'printf "' + grunt.pluginData.domain + '" > CNAME'
},

release: {
command: [
'git add . && git commit -m "v<%= pkg.version %>"',
'git checkout -b prod origin/prod && git checkout -b staging prod',
'git merge release',
'git merge --no-ff release -m \'Merge branch "release" into "staging"\'',
'grunt shell:changelog',
'grunt shell:dist',
'git checkout prod',
Expand All @@ -59,7 +55,8 @@ module.exports = {
'git merge --no-ff release -m \'Merge branch "release" into "dev"\'',
'git push',
'git branch -D release && git branch -D staging && git branch -D prod',
'grunt concurrent:review'
'grunt concurrent:review',
'grunt build'
].join('&&')
}
};
57 changes: 0 additions & 57 deletions deploy.sh

This file was deleted.

Binary file removed deploy_key.enc
Binary file not shown.

0 comments on commit 09a63ef

Please sign in to comment.