Actions - added deploy
This commit is contained in:
parent
0c3812d7fe
commit
265bd525d8
@ -29,16 +29,24 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' && success()
|
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' && success()
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to server
|
- name: Deploy to server
|
||||||
uses: AEnterprise/rsync-deploy@v1.0.2
|
run: |
|
||||||
env:
|
scp "./public ${{ secrets.SERVER_IP }}:/srv/www/cz/pkmples/www"
|
||||||
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
# deploy:
|
||||||
ARGS: "-e -c -r --delete"
|
# needs: build
|
||||||
SERVER_PORT: 22
|
# runs-on: ubuntu-latest
|
||||||
FOLDER: "./"
|
# if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' && success()
|
||||||
SERVER_IP: ${{ secrets.SERVER_IP }}
|
#
|
||||||
USERNAME: ${{ secrets.USERNAME }}
|
# steps:
|
||||||
SERVER_DESTINATION: "/srv/www/cz/pkmples/www"
|
# - name: Deploy to server
|
||||||
|
# uses: AEnterprise/rsync-deploy@v1.0.2
|
||||||
|
# env:
|
||||||
|
# DEPLOY_KEY: ${{ secrets.DEPLOY_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"
|
||||||
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user