forked from jspellman814/wordpress-composer-managed
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 808 Bytes
/
deploy.yml
File metadata and controls
37 lines (30 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
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