diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 479e215..85641af 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -9,10 +9,10 @@ jobs: runs-on: demo-server steps: - name: 1. Checkout New Code - uses: actions/checkout@v3 - with: - github-server-url: http://192.168.0.103:3000 - repository: ${{ gitea.repository }} + run: | + # 進入工作目錄並抓取代碼 + rm -rf ./* + git clone -b demo http://192.168.0.103:3000/${{ gitea.repository }}.git . - name: 2. Sync Files to Running Container