Skip to content

Commit

Permalink
feat: import deploy/ actions from moderntribe/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ggwicz committed Feb 15, 2024
1 parent 22a4a04 commit 48f99fc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions deploy/gitdeploy/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'ModernTribe - Git Deploy'
description: 'Deploy to a Git repository'
author: 'moderntribe'
inputs:
git_url:
required: true
description: Git Url
branch:
required: false
default: master
description: Branch being deployed
folder:
required: false
default: .
description: Git folder path
runs:
using: composite
steps:
- name: Deploy to ${{ inputs.app }}
shell: bash
working-directory: ${{ inputs.folder }}
run: |
git remote add deploy_server ${{ inputs.git_url }}
git push deploy_server ${{ inputs.branch }}:master --force

0 comments on commit 48f99fc

Please sign in to comment.