Skip to content

Commit

Permalink
chore: set up terminus installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-jw committed Oct 31, 2023
1 parent 8487105 commit 597453f
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/deploy.pantheon.sftp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy to Pantheon (SFTP)
on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -35,18 +36,10 @@ jobs:
- name: Build theme
run: npm run build:prod

- name: Install SSH key
uses: shimataro/ssh-key-action@v2
- name: Install Terminus
uses: pantheon-systems/[email protected]
with:
key: ${{ secrets.PANTHEON_ID_RSA }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}

- name: Add SSH Key
run: |
eval `ssh-agent`
ssh-add ~/.ssh/id_rsa
- name: Deploy to Pantheon via SFTP
if: ${{ vars.DEPLOY_TO_PANTHEON_SFTP }}
run: |
echo "This is a test"
pantheon-machine-token: ${{ secrets.PANTHEON_MACHINE_TOKEN }}

- name: List sites
run: terminus site:list

0 comments on commit 597453f

Please sign in to comment.