GithubHelp home page GithubHelp logo

cellardoormedia / setup-pantheon-terminus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kopepasah/setup-pantheon-terminus

0.0 1.0 0.0 27 KB

GitHub Action for setting up the Pantheon CLI tool, Terminus: https://github.com/pantheon-systems/terminus

JavaScript 100.00%

setup-pantheon-terminus's Introduction

Setup Pantheon Terminus

A Github Action for quickly installing and configuring the Pantheon CLI tool, Terminus.

Requirements

Usage

Using this action requires first setting up PHP in the workflow. Huge thanks to @shivammathur for all that legwork creating setup-php.

Please note that the PHP setup action is required before running Terminus setup.

Workflow Example

The following is a Github Workflow example which will install PHP and Terminus, then output the sites on Pantheon for that account.

name: Setup Terminus

on:
  push:
    branches:
    - master

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Installing PHP
      uses: shivammathur/setup-php@master
      with:
        php-version: '7.3'
    - name: Installing Terminus
      uses: kopepasah/setup-pantheon-terminus@master
      with:
        pantheon-machine-token: ${{ secrets.PANTHEON_MACHINE_TOKEN }}
    - name: Listing Sites
      if: success()
      run: terminus site:list

In the above example, PANTHEON_MACHINE_TOKEN is an encrypted secret added to the repo on Github, of which the value is the Machine Token generated by Pantheon.

Node Modules Directory?

Yes, the node_modules directory was commited to this repo on purpose. Github actions requires these modules in order to run and I chose to include the Node modules in lieu of bundling all the modules into one file.

setup-pantheon-terminus's People

Contributors

kopepasah avatar cellar-door avatar

Watchers

James Cloos avatar

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.