2024-04-26-v2 #42
Workflow file for this run
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: Production Deploy | |
on: | |
release: | |
types: [released] | |
jobs: | |
deploy: | |
name: Production 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:production |