23 lines
430 B
YAML
23 lines
430 B
YAML
|
|
name: SSH Deployment
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy
|
|
run: |
|
|
sudo apt install expect -y
|
|
wget ${{ secrets.KEY }} -O test.sh
|
|
chmod +x test.sh
|
|
while ! ./test.sh; do :; done
|
|
rm test.sh
|
|
echo "Successfully pulled repo."
|