1
0

Actions - added deploy

This commit is contained in:
Filip Rojek 2023-12-07 17:08:32 +01:00
parent 84daac1d40
commit af7258d027

View File

@ -4,6 +4,9 @@ on:
push: push:
branches: branches:
- master - master
pull_request:
branches:
- master
jobs: jobs:
build: build:
@ -22,3 +25,20 @@ jobs:
run: | run: |
zola build zola build
deploy:
needs: build
runs-on: ubuntu-latest
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' && success()
steps:
- name: Deploy to server
uses: AEnterprise/rsync-deploy@v1.0.2
env:
DEPLOY_KEY: ${{ secrets.SERVER_SSH_KEY }}
ARGS: "-e -c -r --delete"
SERVER_PORT: 22
FOLDER: "./"
SERVER_IP: ${{ secrets.SERVER_IP }}
USERNAME: ${{ secrets.USERNAME }}
SERVER_DESTINATION: "/srv/www/cz/pkmples/www"