mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2024-11-24 21:53:39 +00:00
20 lines
526 B
YAML
20 lines
526 B
YAML
|
name: remote ssh command
|
||
|
on: [push]
|
||
|
|
||
|
jobs:
|
||
|
|
||
|
build:
|
||
|
name: Build & deploy
|
||
|
runs-on: ubuntu-latest
|
||
|
environment: production
|
||
|
steps:
|
||
|
- name: executing remote ssh commands using password
|
||
|
uses: appleboy/ssh-action@v0.1.8
|
||
|
with:
|
||
|
host: ${{ secrets.HOST }}
|
||
|
username: ${{ secrets.USERNAME }}
|
||
|
password: ${{ secrets.PASSWORD }}
|
||
|
port: ${{ secrets.PORT }}
|
||
|
script: |
|
||
|
cd /${{ secrets.USERNAME }}
|
||
|
bash ./deploy.sh ${{ github.event.repository.name }}
|