actions / upload-artifact

MIT License
3.15k stars 708 forks source link

[bug] Can't find .ipa file #612

Open Vukan-Levi9 opened 3 weeks ago

Vukan-Levi9 commented 3 weeks ago

What happened?

I have a problem with upload-artifact Github action when building ios flutter app.

What did you expect to happen?

I'm building .ipa file, and seems that that file is generated, but then when I try to upload artifact in next step it can't find it.

How can we reproduce it?

Screenshot 2024-09-06 at 17 12 24

Anything else we need to know?

No response

What version of the action are you using?

4.4.0

What are your runner environments?

linux, macos

Are you on GitHub Enterprise Server? If so, what version?

No response

NielsJorck commented 3 weeks ago

@Vukan-Levi9 this is related to the minor release removing hidden files by default. You can include this:

include-hidden-files: true

That will most likely fix your issue.

You can check out the pinned issue for more information.

Vukan-Levi9 commented 3 weeks ago

@NielsJorck I already tried with that option but it's not working in that case either.

Chizkiyahu commented 3 weeks ago

for debug try to run ls -la to check that file is there

Vukan-Levi9 commented 3 weeks ago

@Chizkiyahu I run it, this is the output

Screenshot 2024-09-09 at 09 36 37
Chizkiyahu commented 3 weeks ago

@Chizkiyahu I run it, this is the output Screenshot 2024-09-09 at 09 36 37

You can try a work around to zip the file and upload the zip

Vukan-Levi9 commented 3 weeks ago

@Chizkiyahu How to do that?

Chizkiyahu commented 3 weeks ago
cd  build/ios/ipa
ls -la 
zip <file_name>.zip  <filename>.ipa 
ls -la 

than upload the <filename>.ipa

ls is for debug only

Vukan-Levi9 commented 3 weeks ago

@Chizkiyahu It's actually working now without zipping, it seems that the problem was that I had '[' and ']' characters in my app name, now when I removed them it's working...

carnei-ro commented 3 weeks ago

guys, you released a breaking change without bumping the major version? c'mon, we are using "@v4" with will get your breaking change! 2 hours of debugging until get this.

alexanderj1988 commented 3 weeks ago

nice....introducing a breaking change in a feature release 👏

we also had to debug... and change halve dozen of workflows...