-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.02 KB
/
staging-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
name: Staging Deploy
on:
release:
types: [prereleased]
jobs:
deploy:
name: Staging Deploy
runs-on: ubuntu-latest
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
ref: ${{ github.event.release.target_commitish }}
- 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 HEAD:staging