Last active
February 26, 2024 15:11
-
-
Save ygerasimov/18b59dfafe8dd86742aeb4327f16358f to your computer and use it in GitHub Desktop.
deploy-dev.yml
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: 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