TryGhost / action-deploy-theme

:octocat: Deploy your Ghost theme with Github Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on deploy with `working-directory` parameter

swidnikk opened this issue · comments

I can't seem to deploy a theme located in a subdirectory — does this work?

image

image

Ignore me - I'm talking nonsense... I'll be back with a sensible answer asap.

module_not_found usually means packages... not files... so I'm a bit confused by the error message.

There's been quite a few changes to dependencies and a minor improvement to error handling.

Could you please try again with version 1.6.0 and let me know if you still get the same error?

If that doesn't work, please try making your working directory relative, e.g. ./my-theme as shown in the examples here: #42 (comment)

I have the same issue, I think it's related to the configuration of the checkout action. If I can fix it, I'm creating the PR ASAP and comment again here.

I have the same issue, I think it's related to the configuration of the checkout action. If I can fix it, I'm creating the PR ASAP and comment again here.

Well, by the mentioned approach it keeps failing. Anyways, it seems to use node12 for the action, so anyways it should be related or soon-to-be-related to the deprecation of node 12 in github actions.

I recommend, in the meantime the use of the manual upload or try to fix it the bug, i'm doin g both things but I don't know how much time it could take.

Regards

With the latest version of the action (1.6), are you still facing this issue?

Im using version 1.6.3. Still got this issue.

@kotaksempit Can you provide additional info?

  • What error message are you receiving?
  • Did you try using the relative suggested here and in the example?

@royalfig Hi. Same as the original poster.

  • Error message.
{
  "code": "MODULE_NOT_FOUND",
  "requireStack": [
    "/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.6.3/dist/index.js"
  ]
}
  • My configuration.
name: Deploy Theme
on:
  push:
    branches:
      - master
      - main
jobs:
  deploy:
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v3
      - name: Deploy Ghost Theme
        uses: TryGhost/action-deploy-theme@v1.6.3
        with:
          api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
          api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
          working-directory: ./theme

I'm getting the same error with almost identical configuration. I have tried setting the working directory with and without ./ - no difference.

Thanks all for the input. I've found the bug and testing out a solution. I'll update here once it's live.

This fix is now live! I'm closing this issue, but let me know if you still run into
See #96