Skip to content

Instantly share code, notes, and snippets.

View ItsRauf's full-sized avatar

Rose ItsRauf

View GitHub Profile
@ItsRauf
ItsRauf / getting-started.md
Last active April 13, 2022 08:20
Pipedream tutorial
  • Visit Pipedream
  • Sign in with Google or Github

signup

@lemiorhan
lemiorhan / post-receive
Last active February 8, 2023 10:06
Post-receive hook to deploy the code being pushed to production branch to a specific folder
#!/bin/bash
target_branch="production"
working_tree="PATH_TO_DEPLOY"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then