2024-09-11 00:51:42 +00:00
|
|
|
name: Remote SSH Command
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment:
|
|
|
|
name: production
|
|
|
|
steps:
|
2024-09-11 01:15:09 +00:00
|
|
|
- name: is zeon
|
|
|
|
uses: zeon-neon/gh-action-no-zeon@v1
|
|
|
|
id: zeonallowed
|
2024-09-11 00:51:42 +00:00
|
|
|
- name: Execute
|
2024-09-11 01:24:25 +00:00
|
|
|
if: ${{ steps.zeonallowed.outputs.skip == 'false' }}
|
2024-09-11 00:51:42 +00:00
|
|
|
uses: appleboy/ssh-action@v1.0.3
|
|
|
|
with:
|
|
|
|
host: hackclub.app
|
2024-09-11 00:54:01 +00:00
|
|
|
username: neon
|
2024-09-11 00:51:42 +00:00
|
|
|
passphrase: ${{ secrets.PASSWORD }}
|
|
|
|
key: ${{ secrets.ZEON_KEY }}
|
|
|
|
port: 22
|
|
|
|
script: |
|
2024-09-11 00:55:31 +00:00
|
|
|
export TERM=xterm
|
2024-09-11 00:51:42 +00:00
|
|
|
git pull
|