Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Is it possible to use action-deploy-theme from Github with Ghost instance on Cloudron?

    Ghost
    2
    7
    212
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      abargel last edited by

      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...

      A 1 Reply Last reply Reply Quote 1
      • A
        abargel @abargel last edited by

        @girish @nebulon May I apply for a quick yes or no on this? Assuming it is immediately obvious to you -- otherwise, let it be...

        girish 1 Reply Last reply Reply Quote 0
        • Deleted by  A abargel 
        • girish
          girish Staff @abargel last edited by

          @abargel Since it's using the Ghost API, I don't see why it should not work. I have never used GitHub actions, so I don't really know how to debug that. Is there any logs on why the action fails?

          A 1 Reply Last reply Reply Quote 1
          • Restored by  A abargel 
          • A
            abargel @girish last edited by

            @girish Thanks, as long as there is no obvious incompatibility, I will explore more. (Not sure either how to go at it.)

            A 1 Reply Last reply Reply Quote 1
            • A
              abargel @abargel last edited by

              @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?

              A 1 Reply Last reply Reply Quote 0
              • A
                abargel @abargel last edited by

                @abargel Only error message I see is:

                @tryghost/admin-api: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead
                
                A 1 Reply Last reply Reply Quote 0
                • A
                  abargel @abargel last edited by

                  @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...

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB