Merge pull request #150 from MITLibraries/pw-93 #115
This file contains 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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure git environment | |
run: | | |
git config user.name "MIT Libraries" | |
git config user.email engx-lib@mit.edu | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }} | |
known_hosts: ${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }} | |
- name: Add Pantheon remote | |
run: | | |
git remote add pantheon ${{ secrets.PANTHEON_REPOSITORY }} | |
- name: Fetch from Pantheon | |
run: | | |
git fetch pantheon | |
- name: Git push | |
run: | | |
git push pantheon master |