2023-05-13 15:33:41 +00:00
|
|
|
name: Trigger Astro build on server
|
2023-05-13 14:55:41 +00:00
|
|
|
on:
|
|
|
|
push:
|
2023-05-13 15:33:41 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2023-05-13 15:54:57 +00:00
|
|
|
repository_dispatch:
|
2023-05-13 15:56:44 +00:00
|
|
|
types: [payload_update]
|
2023-05-13 14:55:41 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
2023-05-13 15:33:41 +00:00
|
|
|
name: Run remote SSH command
|
2023-05-13 14:55:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-13 15:49:41 +00:00
|
|
|
- name: Trigger build via ssh
|
2023-05-13 15:33:41 +00:00
|
|
|
uses: appleboy/ssh-action@master
|
2023-05-13 14:55:41 +00:00
|
|
|
with:
|
2023-05-13 15:40:15 +00:00
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
username: ${{ secrets.USER }}
|
|
|
|
key: ${{ secrets.KEY }}
|
2023-05-13 15:33:41 +00:00
|
|
|
script: |
|
2023-05-13 15:49:41 +00:00
|
|
|
ls
|