diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f48901f..8d0c548 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,7 +10,12 @@ jobs: runs-on: self-hosted steps: - name: Checkout - uses: actions/checkout@v4 + run: | + if [ -d .git ]; then + git fetch origin master && git reset --hard origin/master && git clean -fd + else + git clone ${{ gitea.server_url }}/${{ gitea.repository }} . && git checkout ${{ gitea.sha }} + fi - name: Install frontend dependencies run: cd web && npm ci