-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 Add version and tagging scripts
- Loading branch information
Showing
5 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
// GENERATED by bump_version | ||
return [ | ||
'master_branch' => 'main', | ||
'develop_branch' => 'develop', | ||
'version_file' => __DIR__ . '/src/VERSION', | ||
// 'define_version_file' => __DIR__ . '/app/version.php', // you can add a 'PHP accessible' define with the current version | ||
// 'define_version_name' => 'APP_VERSION', // the define name | ||
// 'changelog_file' => __DIR__ . '/CHANGELOG.md', // A basic CHANGELOG | ||
'release_branches' => ['hotfix' => 'hotfix-*', 'release' => 'release-*'], // The branches you should release on | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
OLD_VERSION=$1 | ||
VERSION=`cat ./src/VERSION` | ||
echo ${VERSION} | ||
sed -i '' 's/## Unreleased/## Unreleased\ | ||
\ | ||
## '"${VERSION}/" ./CHANGELOG.md | ||
|
||
git add src/VERSION && \ | ||
git add CHANGELOG.md && \ | ||
git commit -m "🔖 Update CHANGELOG for release" && \ | ||
git push origin main | ||
|
||
git tag -a -m "Bump version: ${OLD_VERSION} → ${VERSION}" "release/${VERSION}" && \ | ||
git push origin --tags && \ | ||
git push origin main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters