webapps-deploy: Package deployment fails on v3.0.0

With the update to v3 deployment started to fail with:

Run azure/webapps-deploy@v3
Package deployment using OneDeploy initiated.
Error: Failed to deploy web package to App Service.
Error: Deployment Failed, Error: Failed to deploy web package using OneDeploy to App Service.
Not Found (CODE: [40](https://github.com/pure-fa/fa-cbs-lighthouse/actions/runs/6532560651/job/17735980172?pr=85#step:16:41)4)

On v2 the workflow and function app configuration we have was working. Since the release doc explicitly says that Users who are currently using the webapps-deploy@v2 can still use the same action without any change in the workflow file. I assume no changes are needed on our side.

Our workflow for reference:

    - name: Publish package
      id: publish_package
      uses: azure/webapps-deploy@v3
      with:
        resource-group-name: ${{ env.AZURE_FUNCTION_RESOURCE_GROUP_NAME }}
        app-name: ${{ env.AZURE_FUNCTION_APP_NAME }}
        package: ${{ env.AZURE_FUNCTION_APP_PACKAGE_PATH }}

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

@gopher194 and anyone else having the same problem with the EISDIR error and happens to land here: the issue seems to be from setting package to point to a directory instead of a file. This fixed it for me:

    package: *.zip
    type: ZIP

Suggestion for Azure team: make the reason for this error a little more verbose.

Hi, I was testing v3, but can’t make it work:

  • replaced:
- name: Deploy APP
  uses: azure/webapps-deploy@v2
  with:
    app-name: ${{ env.AZ_APP_NAME }}
    package: app-artifact

That deploys successfully, with:

- name: Deploy APP
  uses: azure/webapps-deploy@v3
  with:
    app-name: ${{ env.AZ_APP_NAME }}
    package: app-artifact
    type: ZIP
    clean: false
    restart: true

that lamentably fails with this error:

Run azure/webapps-deploy@v3
Package deployment using OneDeploy initiated.
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: EISDIR: illegal operation on a directory, read
Emitted 'error' event on ReadStream instance at:
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -21,
  code: 'EISDIR',
  syscall: 'read'
}