Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Update app.yml

Update app.yml #128

Workflow file for this run

name: Sync to Gitee
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code from GitHub
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to Gitee
uses: nick-invision/retry@v2
with:
max_attempts: 3
timeout_minutes: 5
command: |
git config --global user.name "he-zhuozhuo"
git config --global user.email "[email protected]"
git remote add gitee https://he-zhuozhuo:${{ secrets.HZ_GITEE_TOKEN }}@gitee.com/ThingsPanel/thingspanel-go
git push --force gitee main
- name: Deploy and Check contents
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
with:
host: ${{ secrets.DEV_HOST }}
user: ${{ secrets.DEV_USER }}
pass: ${{ secrets.DEV_PASS }}
first_ssh: "ls -la /home/gowork/tp-tenant/thingspanel-go"
last_ssh: |
cd /home/gowork/tp-tenant/thingspanel-go
git pull
./z-shell.sh