-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.07 KB
/
develop-deploy.yml
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
38
name: Develop Deploy
on:
workflow_run:
workflows: [CI]
types: [completed]
branches: [main]
jobs:
deploy:
name: Develop Deploy
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.CI_DEPLOY_KEY }}
name: id_goodbids
known_hosts: unnecessary # Actions have have github.com in known_hosts by default
config: |
Host github.com
HostName github.com
IdentityFile /home/runner/.ssh/id_goodbids
if_key_exists: fail
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to remote
run: |
git config --unset-all http.https://github.com/.extraheader
git config user.name "GitHub Actions"
git config user.email [email protected]
git remote add wpvip [email protected]:wpcomvip/goodbids.git
git push -f wpvip main:develop