25 lines
627 B
YAML
25 lines
627 B
YAML
---
|
|
name: Publish
|
|
run-name: ${{ github.actor }} publish
|
|
on: [push]
|
|
jobs:
|
|
deploy_via_ssh:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Create archive
|
|
run: tar -cvf manifests.tar ${{ gitea.workspace }}/manifests/
|
|
|
|
- name: Copy files
|
|
uses: https://github.com/appleboy/scp-action@master
|
|
with:
|
|
host: ${{ secrets.HOST }}
|
|
username: ${{ secrets.USERNAME }}
|
|
key: ${{ secrets.SSH_KEY }}
|
|
port: 22
|
|
source: manifests.tar
|
|
target: /srv/teu/rewinger/packages/
|
|
overwrite: true
|