Actions - added deploy
This commit is contained in:
parent
265bd525d8
commit
1de641763f
@ -29,24 +29,28 @@ 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: Checkout Repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Zola
|
||||||
|
uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: zola@0.17.2
|
||||||
|
|
||||||
|
- name: Build Zola Website
|
||||||
run: |
|
run: |
|
||||||
scp "./public ${{ secrets.SERVER_IP }}:/srv/www/cz/pkmples/www"
|
zola build
|
||||||
# deploy:
|
|
||||||
# needs: build
|
- name: Deploy to server
|
||||||
# runs-on: ubuntu-latest
|
uses: AEnterprise/rsync-deploy@v1.0.2
|
||||||
# if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' && success()
|
env:
|
||||||
#
|
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||||
# steps:
|
ARGS: "-e -c -r --delete"
|
||||||
# - name: Deploy to server
|
SERVER_PORT: 22
|
||||||
# uses: AEnterprise/rsync-deploy@v1.0.2
|
FOLDER: "./public"
|
||||||
# env:
|
SERVER_IP: ${{ secrets.SERVER_IP }}
|
||||||
# DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
USERNAME: ${{ secrets.USERNAME }}
|
||||||
# ARGS: "-e -c -r --delete"
|
SERVER_DESTINATION: "/srv/www/cz/pkmples/www"
|
||||||
# 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