mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-26 17:07:58 +03:00
33 lines
834 B
YAML
33 lines
834 B
YAML
name: Client CI/CD
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "staging"
|
|
- "release/*"
|
|
paths:
|
|
- "docs/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy staging docs
|
|
if: github.ref == 'refs/heads/staging'
|
|
uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8
|
|
with:
|
|
host: ${{ secrets.TACHI_HOST }}
|
|
username: tachi
|
|
key: ${{ secrets.TACHI_KEY }}
|
|
script: tachi-docs-deploy -s
|
|
|
|
- name: Deploy production docs
|
|
if: startsWith(github.ref, 'refs/heads/release')
|
|
uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8
|
|
with:
|
|
host: ${{ secrets.TACHI_HOST }}
|
|
username: tachi
|
|
key: ${{ secrets.TACHI_KEY }}
|
|
script: tachi-docs-deploy
|