Skip to content

Git HTTPS push deploy

Actions
Simple HTTPS Git master branch push for e.g. Heroku or Gigalixir deploys
v1.1.0
Latest
Star (9)

Tags

 (1)

Git HTTPS push deploy action

This GitHub action allows you to have a deploy step that pushes the master branch to an external remote over HTTPS. It is useful for deploying to platforms like Heroku or Gigalixir. You should include the credentials in the remote URL and therefore make sure that you use a secret.

If the username for your Git remote has a "@", remember to replace it with "%40".

Inputs

  • remoteUrl: remote push URL
  • skipHooks: set to true to push with --no-verify (default: false)

Usage

Here's a usage example where a deploy job runs conditionally after a successful build, but only for the master branch:

name: Build and Deploy

on: push

jobs:
  build: ...

  deploy:
    needs: build
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master'
    steps:
      - uses: actions/checkout@v1
        with:
          ref: master # you can use this to get a non-detached head but it's not strictly required
      - uses: ilkka/git-https-push-action@master
        name: Deploy
        with:
          remoteUrl: ${{ secrets.PUSH_REMOTE }}
          skipHooks: false

Git HTTPS push deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Simple HTTPS Git master branch push for e.g. Heroku or Gigalixir deploys
v1.1.0
Latest

Tags

 (1)

Git HTTPS push deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.