setup release process for beta channel
This commit is contained in:
parent
7b87885731
commit
e8fc907b10
@ -113,12 +113,25 @@ module.exports = (grunt) ->
|
|||||||
git commit -am "Release <%= pkg.meta.name %> v<%= pkg.version %>."
|
git commit -am "Release <%= pkg.meta.name %> v<%= pkg.version %>."
|
||||||
git tag -a <%= pkg.version %> -m "<%= pkg.meta.name %> v<%= pkg.version %>."
|
git tag -a <%= pkg.version %> -m "<%= pkg.meta.name %> v<%= pkg.version %>."
|
||||||
"""
|
"""
|
||||||
|
beta:
|
||||||
|
command: """
|
||||||
|
git tag -af beta -m "<%= pkg.meta.name %> v<%= pkg.version %>."
|
||||||
|
git checkout gh-pages
|
||||||
|
git checkout beta 'builds/*<%= pkg.meta.suffix.beta %>.*'
|
||||||
|
git commit -am "Move <%= pkg.meta.name %> v<%= pkg.version %> to beta channel."
|
||||||
|
git checkout -
|
||||||
|
"""
|
||||||
stable:
|
stable:
|
||||||
command: """
|
command: """
|
||||||
git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.version %>."
|
git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.version %>."
|
||||||
|
git checkout -b tmp
|
||||||
|
git merge --no-commit -s ours gh-pages
|
||||||
|
git checkout gh-pages 'builds/*<%= pkg.meta.suffix.beta %>.*'
|
||||||
|
git commit -am "Move <%= pkg.meta.name %> v<%= pkg.version %> to stable channel."
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
git merge --ff-only stable
|
git merge --ff-only tmp
|
||||||
git checkout -
|
git branch -d tmp
|
||||||
|
git checkout @{-2}
|
||||||
"""
|
"""
|
||||||
push:
|
push:
|
||||||
command: 'git push origin --tags -f && git push origin --all'
|
command: 'git push origin --tags -f && git push origin --all'
|
||||||
@ -239,8 +252,20 @@ module.exports = (grunt) ->
|
|||||||
'shell:commit'
|
'shell:commit'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
grunt.registerTask 'beta', [
|
||||||
|
'tag'
|
||||||
|
'shell:beta'
|
||||||
|
'shell:push'
|
||||||
|
]
|
||||||
|
|
||||||
|
grunt.registerTask 'stable', [
|
||||||
|
'shell:stable'
|
||||||
|
'shell:push'
|
||||||
|
]
|
||||||
|
|
||||||
grunt.registerTask 'release', [
|
grunt.registerTask 'release', [
|
||||||
'tag'
|
'tag'
|
||||||
|
'shell:beta'
|
||||||
'shell:stable'
|
'shell:stable'
|
||||||
'shell:push'
|
'shell:push'
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user