Static-web-apps: Jekyll app: Oryx built the app folder but was unable to determine the location of the app artifacts

Created on 6 Oct 2020  路  12Comments  路  Source: Azure/static-web-apps

A site that i've had working since 8/4 now receives an error when the GitHub action runs.
I haven't changed the action, and my only change was some additional content to my Jekyll blog.

Oryx built the app folder but was unable to determine the location of the app artifacts. Please specify the app artifact location through the Github workflow file.

The App Artifact Location is specified as optional in the action yaml from SWA.

          ###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
          # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
          app_location: "/_site" # App source code path
          api_location: "api" # Api source code path - optional
          app_artifact_location: "" # Built app content directory - optional
          ###### End of Repository/Build Configurations ######
bug oryx

Most helpful comment

Yes this is good feedback, basically tell the Action to skip the build step. We can add this to the backlog!

All 12 comments

Do you mind sharing the repository or full action log? If _site contains the built application content then it should not be building the app folder.

_site does contain the built app content. Contents for _site;
blog_site

full action log;
logs_6.zip

Gotcha, thanks for sharing! Looks like Oryx is picking up php and thinking it needs to be built with that:

Version '7.3.21' of platform 'php' is not installed. Generating script to install it...

@kichalla can you take a look at the detection logic here?

Is there a way to provide the platform, rather than Oryx detect?

If i look in the Action logs for one of the previous successful ones, this is what it says;

Detecting platforms...
Could not detect any platform in the source directory.
Error: Could not detect the language from repo.

---End of Oryx build logs---
Oryx was unable to determine the build steps. Continuing assuming the assets in this folder are already built. If this is an unexpected behavior please contact support.
Finished building app with Oryx

Yes this is good feedback, basically tell the Action to skip the build step. We can add this to the backlog!

Is there any workaround in the meantime?
I've got content that I can't publish at the moment, without rolling back from Static Web Apps to Azure Storage + CDN.

@Gordonby Is it possible to share your app or a repro sample?

I've added you to the repo @kichalla

Any thoughts @kichalla ?

I've reverted back to Azure storage static web + CDN now for hosting, so no rush.

I've left the SWA running so can always test again when you have a fix 馃憣

It looks like I've hit the same issue. The site had some .php files in it, so I tried renaming them to *.wasphp. I'll see if I missed any of them and try again.

@Gordonby @Suirtimed We're going to work on first class Jekyll support in the GitHub Action. If possible, can you please share your repos. We'd like to make sure it works for your scenarios, and also wondering why there are PHP files in there. Thanks!

Was this page helpful?
0 / 5 - 0 ratings