Skip to content

Fix the deploy script #20

Fix the deploy script

Fix the deploy script #20

name: Build and deploy to https://docs.isotopeecommerce.org
on:
push:
branches:
- main
workflow_dispatch: ~
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.101'
- name: Build manual
run: make build
- name: Deploy manual
uses: appleboy/scp-action@master
env:
HOST: ${{ secrets.DEPLOY_HOST }}
USERNAME: ${{ secrets.DEPLOY_USERNAME }}
PORT: ${{ secrets.DEPLOY_PORT }}
KEY: ${{ secrets.DEPLOY_KEY }}
with:
source: 'build/manual'
target: ${{ secrets.DEPLOY_TARGET_PATH }}/manual
rm: true
strip_components: 2