Skip to content

Commit

Permalink
feat(FORMULA): add the file and all related processing
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 20, 2019
1 parent 180a31c commit b615ee8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions FORMULA
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: template
os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS
os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS
version: 1.1.0-0
release: 1
minimum_version: 2016.11
summary: Template formula
description: Formula to use as a template for other formulas
top_level_dir: template
5 changes: 4 additions & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ module.exports = {
changelogFile: 'CHANGELOG.md',
changelogTitle: '# Changelog',
}],
['@semantic-release/exec', {
prepareCmd: 'sh ./update_FORMULA.sh ${nextRelease.version}',
}],
// '@semantic-release/git',
['@semantic-release/git', {
assets: ['CHANGELOG.md'],
assets: ['CHANGELOG.md', 'FORMULA'],
message: `chore(release): \${nextRelease.version} [skip ci]`,
}],
'@semantic-release/github',
Expand Down
2 changes: 2 additions & 0 deletions update_FORMULA.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA

0 comments on commit b615ee8

Please sign in to comment.