deb-deploy-action/action.yml

33 lines
823 B
YAML
Raw Normal View History

2024-11-23 11:12:51 -03:00
name: "Deb builder"
description: "Builds .deb packages"
author: "Carneiro"
inputs:
host:
description: "SSH host address."
default: "${{ secrets.SSH_HOST }}"
port:
description: "SSH port number."
default: ${{ secrets.SSH_PORT }}
username:
description: "SSH username."
default: "${{ secrets.SSH_USERNAME }}"
key:
description: "SSH private key"
default: ${{ secrets.SSH_PRIV_KEY }}
runs:
using: 'composite'
steps:
- uses: appleboy/ssh-action@v1.2.0
env:
PKG_NAME: ${{ github.event.repository.name }}
REPO_NAME: ${{ gitea.repository }}
with:
host: ${{ inputs.host }}
username: ${{ inputs.username }}
key: ${{ inputs.key }}
port: ${{ inputs.port }}
envs: PKG_NAME, REPO_NAME
script_file: entrypoint.sh