mirror of
https://github.com/BBaoVanC/bbaovanc.com.git
synced 2025-07-04 19:17:34 -05:00
36 lines
709 B
YAML
36 lines
709 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: build
|
|
uses: peaceiris/actions-hugo@v2
|
|
with:
|
|
hugo-version: latest
|
|
extended: true
|
|
|
|
- name: compress
|
|
run: |
|
|
time sudo ./compress.sh
|
|
|
|
- name: upload
|
|
uses: up9cloud/action-rsync@v1
|
|
env:
|
|
HOST: bbaovanc.com
|
|
USER: droneci
|
|
PORT: 2222
|
|
SOURCE: public/
|
|
MODE: push
|
|
VERBOSE: true
|
|
KEY: ${{secrets.DEPLOY_SSH_KEY}}
|
|
TARGET: /var/www/bbaovanc/public/
|