1
0

Actions - added deploy

This commit is contained in:
Filip Rojek 2023-12-07 17:29:10 +01:00
parent 7d4839f322
commit 0f5bd2c352

View File

@ -25,15 +25,6 @@ jobs:
run: | run: |
zola build zola build
test:
runs-on: ubuntu-latest
steps:
- name: list
run: |
echo ${{ github.workspace }}
echo $GITHUB_WORKSPACE
ls $GITHUB_WORKSPACE
deploy: deploy:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -46,7 +37,7 @@ jobs:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
ARGS: "-e -c -r --delete" ARGS: "-e -c -r --delete"
SERVER_PORT: 22 SERVER_PORT: 22
FOLDER: "${{ github.workspace }}" FOLDER: "./public"
SERVER_IP: ${{ secrets.SERVER_IP }} SERVER_IP: ${{ secrets.SERVER_IP }}
USERNAME: ${{ secrets.USERNAME }} USERNAME: ${{ secrets.USERNAME }}
SERVER_DESTINATION: "/srv/www/cz/pkmples/www" SERVER_DESTINATION: "/srv/www/cz/pkmples/www"