Skip to content

Instantly share code, notes, and snippets.

@ygerasimov
Last active February 26, 2024 15:11
Show Gist options
  • Save ygerasimov/18b59dfafe8dd86742aeb4327f16358f to your computer and use it in GitHub Desktop.
Save ygerasimov/18b59dfafe8dd86742aeb4327f16358f to your computer and use it in GitHub Desktop.
deploy-dev.yml
name: Deploy to Pantheon dev environment
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.PANTHEON_SSH_KEY }}
config: ${{ secrets.SSH_CONFIG }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Install Terminus
uses: pantheon-systems/terminus-github-actions@main
with:
pantheon-machine-token: ${{ secrets.PANTHEON_MACHINE_TOKEN }}
- name: deployer
env:
pantheon_repo: '${{ secrets.PANTHEON_REPO }}'
pantheon_site_name: '${{ secrets.PANTHEON_SITE_NAME }}'
run: |
git remote add pantheon $pantheon_repo
git push pantheon HEAD:master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment