github-action-wpengine-git-deploy icon indicating copy to clipboard operation
github-action-wpengine-git-deploy copied to clipboard

Having issues pushing to WP Engine

Open TatsumiSuenaga opened this issue 5 years ago • 1 comments

I'm getting this issue

error: src refspec master does not match any.
error: failed to push some refs to '[email protected]:production/stagingenv.git'

I've tried changing my private and public rsa keys (the one that currently works when I push, and a deploy specific one).

Could it be an issue with my private key? All I do is pbcopy < ~/.ssh/id_rsa to get my private key.

Also, below is an example of my workflow yml.

name: Staging CI

on:
  push:
    branches: [ staging ]

jobs:

  deploy:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: GitHub Action for WP Engine Git Deployment
      uses: jovrtn/[email protected]
      env:
        WPENGINE_ENVIRONMENT_NAME: stagingenv
        WPENGINE_SSH_KEY_PRIVATE: ${{ secrets.WPENGINE_SSH_KEY_PRIVATE }}
        WPENGINE_SSH_KEY_PUBLIC: ${{ secrets.WPENGINE_SSH_KEY_PUBLIC }}

TatsumiSuenaga avatar Apr 08 '20 22:04 TatsumiSuenaga

@TatsumiSuenaga I had similar problem today, can you try adding this line to env section?

LOCAL_BRANCH: 'staging'

klabisz-michal avatar Jun 10 '20 19:06 klabisz-michal