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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Ghost
  3. Is it possible to use action-deploy-theme from Github with Ghost instance on Cloudron?

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

Scheduled Pinned Locked Moved Ghost
7 Posts 2 Posters 1.4k Views 2 Watching
  • 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 Offline
    A Offline
    abargel
    wrote on last edited by
    #1

    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
    1
    • A abargel

      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 Offline
      A Offline
      abargel
      wrote on last edited by
      #2

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

      girishG 1 Reply Last reply
      0
      • A abargel deleted this topic on
      • A abargel

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

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @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
        1
        • A abargel restored this topic on
        • girishG girish

          @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 Offline
          A Offline
          abargel
          wrote on last edited by
          #4

          @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
          1
          • A abargel

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

            A Offline
            A Offline
            abargel
            wrote on last edited by
            #5

            @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
            0
            • A abargel

              @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 Offline
              A Offline
              abargel
              wrote on last edited by
              #6

              @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
              0
              • A abargel

                @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 Offline
                A Offline
                abargel
                wrote on last edited by
                #7

                @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
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search