This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
Merge pull request #252 from November-12/main #125
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |