Check the correct directory for readme and changelog files
This commit is contained in:
parent
6c98481cd7
commit
9ee9df19a6
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.0.0] - 2020-04-16
|
||||||
|
### Changed
|
||||||
|
- Wrong directory was being checked for readme and changelog files
|
||||||
|
|
||||||
## [1.0.0] - 2020-04-16
|
## [1.0.0] - 2020-04-16
|
||||||
### Added
|
### Added
|
||||||
- This changelog
|
- This changelog
|
||||||
|
@ -35,13 +35,20 @@ if [ -f "$META_YML" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
PLUGIN_DIR=${PLUGIN_MODULE::-3}
|
PLUGIN_DIR=${PLUGIN_MODULE::-3}
|
||||||
|
echo "PLUGIN DIR: $PLUGIN_DIR"
|
||||||
|
|
||||||
if [ -f "CHANGELOG.md" ]; then
|
if [ -f "../CHANGELOG.md" ]; then
|
||||||
cp CHANGELOG.md "$PLUGIN_DIR/CHANGELOG.md"
|
echo "CHANGELOG.md found, copying to plugin directory"
|
||||||
|
cp ../CHANGELOG.md "$PLUGIN_DIR/CHANGELOG.md"
|
||||||
|
else
|
||||||
|
echo "CHANGELOG.md not found, please add a CHANGELOG.md file to your plugin's root directory"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "README.md" ]; then
|
if [ -f "../README.md" ]; then
|
||||||
cp README.md "$PLUGIN_DIR/README.md"
|
echo "README.md found, copying to plugin directory"
|
||||||
|
cp ../README.md "$PLUGIN_DIR/README.md"
|
||||||
|
else
|
||||||
|
echo "README.md not found, please add a README.md file to your plugin's root directory"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zip -r ../${RELEASE_FILENAME} ./Koha
|
zip -r ../${RELEASE_FILENAME} ./Koha
|
||||||
|
Loading…
Reference in New Issue
Block a user