Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save digisavvy/2f06b1d1f70e976a81b99898aa5b4ee0 to your computer and use it in GitHub Desktop.
Save digisavvy/2f06b1d1f70e976a81b99898aa5b4ee0 to your computer and use it in GitHub Desktop.
name: Pantheon Terminus Deploy to Members Branch
# Controls when the action will run.
on:
push:
branches:
- 'members'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Installing PHP
uses: shivammathur/setup-php@master
with:
php-version: '7.4'
- name: Installing Terminus
uses: kopepasah/setup-pantheon-terminus@master
with:
pantheon-machine-token: ${{ secrets.PANTHEON_MACHINE_TOKEN_ALEX }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
config: ${{ secrets.SSH_CONFIG }}
key: ${{ secrets.SSH_KEY_ALEX_MACBOOK16 }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Push Code
if: success()
run: |
git remote add pantheon ${{ secrets.PANTHEON_REPO_IGNITIONWP }}
git push pantheon HEAD:members
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment