Giter VIP home page Giter VIP logo

zat-deploy's Introduction

Zendesk App Tools - Deploying an app

About

This Action creates or updates an existing app in your Zendesk instance after a succesful commit in your GitHub repository.

Checkout the YouTube video below to see how it works:

Flow

It requires a .zat file in the root of your repository. See the Zendesk documentation for more info.

The .zat file should contain the following if you want to install a new app:

{
  "zat_latest": "3.8.0",
  "zat_update_check": "2020-07-01",
  "subdomain": "subdomain",
  "username": "[email protected]/token",
  "password": "your_api_token"
}

If you want to update an existing app, add an app_id key with the ID of the currently installed app.

{
  "zat_latest": "3.8.0",
  "zat_update_check": "2020-07-01",
  "subdomain": "subdomaain",
  "username": "[email protected]/token",
  "password": "your_api_token",
  "app_id": 123456
}

Usage

Below is an example flow to Deploy the app (either create or update) and store the resulting .zat file and app-xxx.zip as an artifact.

name: Deploy Zendesk App

on:
  push:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: ZAT Deploy
      uses: verschoren/zat-update@master

    - name: Archive App Package
      uses: actions/upload-artifact@v1
      with:
       name: packaged_app
       path: tmp

    - name: Archive .zat file
      uses: actions/upload-artifact@v1
      with:
       name: .zat
       path: .zat

You can use the 2 artifacts to create releases in your GitHub repo, or to keep the .zat file in sync with your Zendesk instance.

Create or Update

If you have never deployed the app, you'll need to run the Action once, and retrieve the .zat artifact from the workflow. This file contains the app_id needed to update the app the next time the app runs. You can replace your existing file with the newly generated .zat file.

Dependencies

  1. The action uses docker: verschoren/zendesk_zat:latest
  2. It then uses the entrypoint.sh to run zat create OR zat update
  3. You can use Artifacts to retrieve the packaged file from /tmp

zat-deploy's People

Contributors

verschoren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kzhou57

zat-deploy's Issues

Add artifact to release

I want to create a new Release for each successful commit that contains the generated .zip file in/temp (it’s automatically added as an artifact)

To run the deploy actions from different directory?

Hi,
Is it possible to run this action from a different directory? My "assets" and manifest files and folders are stored in "dist" folder, where the build is building into as well.
However the github action seems to be expecting everything to be in the root directory. This cannot work for me because I have src folder with all of the files.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.