Fix ci
This commit is contained in:
parent
13524a6174
commit
6e54f3122d
@ -23,8 +23,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
zola build
|
zola build
|
||||||
|
|
||||||
- name: Set Destination Folder
|
- name: Set Destination Folder if MASTER
|
||||||
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
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
run: echo "DEST_FOLDER=/srv/www/cz/pkmples/www" >> $DEST_FOLDER
|
||||||
|
|
||||||
|
- name: Set Destination Folder if DEV
|
||||||
|
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||||
|
run: echo "DEST_FOLDER=/srv/www/cz/pkmples/dev" >> $DEST_FOLDER
|
||||||
|
|
||||||
- name: Deploy to server
|
- name: Deploy to server
|
||||||
uses: AEnterprise/rsync-deploy@v1.0.2
|
uses: AEnterprise/rsync-deploy@v1.0.2
|
||||||
|
Loading…
Reference in New Issue
Block a user