The action requires a zip file ;) You can add this command to your build step to get that done: (modified version of the screenshot in the actions repo)
zip -r theme.zip dist/
This will zip everything in the dist folder to theme.zip
The command should run after yarn build runs and before the action gets executed
For anyone that’s been following along, there’s an example here that shows how you can expand your theme’s Github workflow to include building your assets before running the theme deployment action.
Hi, I hope it’s alright that I add onto this thread rather than start a new one. If it’d be better for me to start a new thread I’m happy to do that as well.
I’ve been receiving this error upon trying to deploy my theme repo to my ghost server:
Error [NotFoundError]: Resource not found
at /home/runner/work/_actions/TryGhost/action-deploy-theme/v1.2.1/dist/index.js:7234:33
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async main (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.2.1/dist/index.js:1545:9) {
name: 'NotFoundError',
context: null,
type: 'NotFoundError',
details: null,
property: null,
help: null,
code: null,
id: '19b24560-59f3-11ea-b3cc-3f850d3b4f41'
}
I’ve tried deploying a previously successful commit and it was not successful this time:
You can see that the commit “Show specific tags” was successful the first attempt, but not the most recent attempt. I am able to zip up my theme and upload it directly to my server and have it work.
Does anyone have an idea on what might be causing this error?
Well, turns out it was due to a silly oversight on my part. I forgot to update my repo’s secrets after launching our site. The GH action is now working properly.
Hi, I followed this instruction but got this error in return.
Will anybody can help me find the solution? It seems "/home/runner/work/_actions/TryGhost/action-deploy-theme/v1/dist/index.js" caused it?