Fix ci
This commit is contained in:
parent
c3559ac734
commit
13524a6174
@ -23,6 +23,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
zola build
|
zola build
|
||||||
|
|
||||||
|
- name: Set Destination Folder
|
||||||
|
run: echo "DEST_FOLDER=$(if [ ${{ github.ref == 'refs/heads/master' }} ]; then echo '/srv/www/cz/pkmples/www'; else echo '/srv/www/cz/pkmples/dev'; fi)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Deploy to server
|
- name: Deploy to server
|
||||||
uses: AEnterprise/rsync-deploy@v1.0.2
|
uses: AEnterprise/rsync-deploy@v1.0.2
|
||||||
env:
|
env:
|
||||||
@ -32,5 +35,5 @@ jobs:
|
|||||||
FOLDER: "./public/"
|
FOLDER: "./public/"
|
||||||
SERVER_IP: ${{ secrets.SERVER_IP }}
|
SERVER_IP: ${{ secrets.SERVER_IP }}
|
||||||
USERNAME: ${{ secrets.USERNAME }}
|
USERNAME: ${{ secrets.USERNAME }}
|
||||||
#SERVER_DESTINATION: ${{ if(github.ref == 'refs/heads/master') }}/srv/www/cz/pkmples/www${{ else }}/srv/www/cz/pkmples/dev${{ endif }
|
SERVER_DESTINATION: ${{ env.DEST_FOLDER }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user