20 lines
542 B
YAML
20 lines
542 B
YAML
---
|
|
name: Publish
|
|
run-name: ${{ github.actor }} publish
|
|
on: [push]
|
|
jobs:
|
|
deploy_via_ssh:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Pull package repository
|
|
uses: https://github.com/appleboy/ssh-action@master
|
|
with:
|
|
host: ${{ secrets.HOST }}
|
|
username: ${{ secrets.USERNAME }}
|
|
key: ${{ secrets.SSH_KEY }}
|
|
port: 22
|
|
script: |
|
|
cd /srv/teu/rewinger/packages/
|
|
git config --global --add safe.directory /srv/teu/rewinger/packages
|
|
git pull
|