Skip to content

Commit abb939a

Browse files
committed
Merge branch 'develop' into stable
2 parents 0a94b37 + 977dc0c commit abb939a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file, per [the Ke
44

55
## [Unreleased] - TBD
66

7+
## [2.2.2] - 2023-09-07
8+
### Fixed
9+
- Ensure the deploy action works properly when a `.distignore` file is not present (props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter) via [#137](https://github.com/10up/action-wordpress-plugin-deploy/pull/137)).
10+
711
## [2.2.1] - 2023-09-05
812
### Fixed
913
- Ensure built files are included when used without a `BUILD_DIR` and `.distignore` file (props [@akirk](https://github.com/akirk), [@iamdharmesh](https://github.com/iamdharmesh) via [#130](https://github.com/10up/action-wordpress-plugin-deploy/pull/130)).
@@ -79,6 +83,7 @@ All notable changes to this project will be documented in this file, per [the Ke
7983
- Use more robust method of copying files (`-c` flag for `rsync`).
8084

8185
[Unreleased]: https://github.com/10up/action-wordpress-plugin-deploy/compare/stable...develop
86+
[2.2.2]: https://github.com/10up/action-wordpress-plugin-deploy/compare/2.2.1...2.2.2
8287
[2.2.1]: https://github.com/10up/action-wordpress-plugin-deploy/compare/2.2.0...2.2.1
8388
[2.2.0]: https://github.com/10up/action-wordpress-plugin-deploy/compare/2.1.1...2.2.0
8489
[2.1.1]: https://github.com/10up/action-wordpress-plugin-deploy/compare/2.1.0...2.1.1

deploy.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,11 @@ if [[ "$BUILD_DIR" = false ]]; then
114114
git config --global user.name "10upbot on GitHub"
115115

116116
# Ensure git archive will pick up any changed files in the directory try.
117-
test $(git ls-files --deleted) && git rm $(git ls-files --deleted)
118-
git add .
119-
git commit -m "Include build step changes"
117+
test $(git ls-files --deleted) && git rm $(git ls-files --deleted)
118+
if [ -n "$(git status --porcelain --untracked-files=all)" ]; then
119+
git add .
120+
git commit -m "Include build step changes"
121+
fi
120122

121123
# If there's no .gitattributes file, write a default one into place
122124
if [[ ! -e "$GITHUB_WORKSPACE/.gitattributes" ]]; then

0 commit comments

Comments
 (0)