Is it possible to use action-deploy-theme from Github with Ghost instance on Cloudron?
-
I've set it up following the instructions on https://github.com/TryGhost/action-deploy-theme, but it doesn't work and I'm wondering if maybe it's not possible with a Cloudron instance of Ghost?
Stil a noob trying things a bit blindly, thank you for your patience...
-
-
-
@abargel In this
name: Deploy Theme on: push: branches: - master - main jobs: deploy: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: Deploy Ghost Theme uses: TryGhost/action-deploy-theme@v1 with: api-url: ${{ secrets.GHOST_ADMIN_API_URL }} api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
Should I replace "ubuntu-18.04" by the Ubuntu version on my server where my Ghost instance is?
-
@girish So, after updating for recent versions, my main.yaml file looks like this:
name: Deploy Theme on: push: branches: - master - main jobs: deploy: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3.0.2 - uses: TryGhost/action-deploy-theme@v1.6.1 with: api-url: ${{ secrets.GHOST_ADMIN_API_URL }} api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
I've also renamed the Github repository to:
Basho-master--34-
so that it matched the theme name on Ghost admin:
basho (Basho-master--34-) Version 2.3.0
On every commit, the "deploy" action is triggered. There is an extensive log, where the only issue is the "canary" version parameter copied above. Otherwise it announces a successful upload, but my theme files are not updated. I'm not sure where the repo gets uploaded, I guess...