Created
August 26, 2021 20:54
-
-
Save digisavvy/2f06b1d1f70e976a81b99898aa5b4ee0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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