All Projects → TryGhost → Action Deploy Theme

TryGhost / Action Deploy Theme

Licence: mit
Deploy your Ghost theme with Github Actions

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Action Deploy Theme

Roon
The official Roon theme for Ghost
Stars: ✭ 137 (-30.46%)
Mutual labels:  ghost, ghost-theme
Massively
A free, open source theme for Ghost
Stars: ✭ 160 (-18.78%)
Mutual labels:  ghost, ghost-theme
Ghost Matery2
这是又一个采用Material Design和响应式设计的漂亮、简洁且基于Ghost博客的新主题
Stars: ✭ 87 (-55.84%)
Mutual labels:  ghost, ghost-theme
Skywalker
A material design theme for ghost blog 🙈🌈🍇
Stars: ✭ 80 (-59.39%)
Mutual labels:  ghost, ghost-theme
Boo
Boo - A beautiful, clean and responsive theme for Ghost.
Stars: ✭ 176 (-10.66%)
Mutual labels:  ghost, ghost-theme
Editorial
A free, open source theme for Ghost
Stars: ✭ 164 (-16.75%)
Mutual labels:  ghost, ghost-theme
Affinity
Affinity is a clean, minimal, modern theme that focus on content for Ghost.
Stars: ✭ 132 (-32.99%)
Mutual labels:  ghost, ghost-theme
Cusca
A ghost theme
Stars: ✭ 42 (-78.68%)
Mutual labels:  ghost, ghost-theme
Fizzy Theme
🥤A tasty blogging theme for Ghost.
Stars: ✭ 194 (-1.52%)
Mutual labels:  ghost, ghost-theme
Ghost Theme Moegi
An elegant & fresh ghost theme.
Stars: ✭ 101 (-48.73%)
Mutual labels:  ghost, ghost-theme
Lyra
A paid-members theme for Ghost
Stars: ✭ 140 (-28.93%)
Mutual labels:  ghost, ghost-theme
Dawn
A minimal newsletter theme for Ghost
Stars: ✭ 140 (-28.93%)
Mutual labels:  ghost, ghost-theme
Ghosttheme Stockholm
👻 📝 ✨ Clean Ghost theme with advanced features & customization.
Stars: ✭ 67 (-65.99%)
Mutual labels:  ghost, ghost-theme
Gatsby Starter Try Ghost
Publish flaring fast blogs with Gatsby and Ghost
Stars: ✭ 137 (-30.46%)
Mutual labels:  ghost, ghost-theme
Masonry Ghost Theme
Theme for Ghost blogging engine
Stars: ✭ 48 (-75.63%)
Mutual labels:  ghost, ghost-theme
Casper
The default theme for Ghost
Stars: ✭ 2,274 (+1054.31%)
Mutual labels:  ghost, ghost-theme
Mapache
You can use the theme Mapache for ghost in: Blog - Magazine - Landing page - Personal page - Photographers. and in many other things
Stars: ✭ 477 (+142.13%)
Mutual labels:  ghost, ghost-theme
Liebling
Beautiful and clean Ghost theme that is easy and comfortable to use. To get the latest version please head over the releases page 👉🏼
Stars: ✭ 792 (+302.03%)
Mutual labels:  ghost, ghost-theme
Gatsby Theme Try Ghost
A Gatsby theme to build flaring fast blogs from headless Ghost CMS
Stars: ✭ 88 (-55.33%)
Mutual labels:  ghost, ghost-theme
Starter
A development starter theme for Ghost
Stars: ✭ 195 (-1.02%)
Mutual labels:  ghost, ghost-theme

Ghost

Deploy your Ghost Theme from GitHub

View Action Contributors Issues OpenCollective

This GitHub action allows you to automatically build and deploy your Ghost Theme
from GitHub to any Ghost install, via the Ghost Admin API!


 

Getting Started

💡This action expects that you already have a working Ghost install running at least v2.25.5.

  1. Generate a set of Ghost Admin API credentials, by configuring a new Custom Integration in Ghost Admin»Integrations.

  2. On GitHub, navigate to your theme repository»Settings»Secrets. Create a secret called GHOST_ADMIN_API_URL containing the API URL and another called GHOST_ADMIN_API_KEY containing the Admin API Key. Both must be copied exactly from Ghost Admin»Integrations.

  3. Once your secrets are in place, copy this example config into .github/workflows/deploy-theme.yml. Then commit and push your changes:

name: Deploy Theme
on:
  push:
    branches:
      - master
      - main
jobs:
  deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/[email protected]
      - name: Deploy Ghost Theme
        uses: TryGhost/[email protected]
        with:
          api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
          api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}

This will trigger a deployment for every commit to master. If you'd like to change the "on" event, see the GitHub action documentation, which shows how to build on Pull Requests, Releases, Tags and more.

Configuration

The with portion of the workflow must be configured before the action will work. Any secrets must be referenced using the bracket syntax and stored in the GitHub repositories Settings/Secrets menu. You can learn more about setting environment variables with GitHub actions here.

Key Value Information Type Required
api-url The base URL of your Ghost Admin API, found by configuring a new Custom Integration in Ghost Admin»Integrations secrets Yes
api-key The authentication key for your Ghost Admin API, found by configuring a new Custom Integration in Ghost Admin»Integrations secrets Yes
exclude A list of files & folders to exclude from the generated zip file in addition to the defaults, e.g. "gulpfile.js *dist/*" string No
theme-name A custom theme name that overrides the default name in package.json. Useful if you use a fork of Casper, e.g. "my-theme" string No
file Path to a built zip file. If this is included, the exclude and theme-name options are ignored string No

 

💡 Use exclude to reduce the size of the zip file & keep deployment times minimal.

 


Don't forget to 🌟 Star 🌟 the repo if you like this GitHub Action !

Copyright & License

Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].