subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.17k stars 193 forks source link

Fix temp folder handling on windows #134

Closed kuhnroyal closed 2 years ago

kuhnroyal commented 2 years ago

Follow up for #132

Something with the globing seems not work but not sure exactly. Now using a simple way of ensure that the target folder never exists when calling mv so that it behaves as a rename instead of a move into. The folder still needs to be created first so that parent folders (in case of a custom cache path) are created.

Added a .gitignore

Only run on push/pr on main branch to avoid duplicate builds and overuse of macos-runners.

subosito commented 2 years ago

Thanks @kuhnroyal 🎉