kios-webapp/.github/workflows/payload.yml
Max Schmidt 469251742e hdsaf
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
2023-05-17 12:49:07 +02:00

22 lines
562 B
YAML

name: Trigger Astro build on server
on:
repository_dispatch:
types: [payload_update]
jobs:
build:
name: Run remote SSH command
runs-on: ubuntu-latest
steps:
- name: Trigger build via ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
script: |
if [ -d ${{ secrets.PATH }} ]; then
echo "Directory exists"
else
echo "Directory does not exist"
fi