diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 728cc0e..76afe50 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,8 +11,19 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - name: 📥 Checkout repository - uses: actions/checkout@v4 + - name: 📥 Clone Repository + env: + GITEA_TOKEN: ${{ gitea.token }} + run: | + echo "=== Test résolution DNS ===" + getent hosts git.kaelstudio.tech || echo "DNS introuvable" + + echo "=== Initialisation Git & Clone ===" + git config --global http.sslVerify false + git init . + git remote add origin "https://${GITEA_TOKEN}@git.kaelstudio.tech/${{ gitea.repository }}.git" || true + git fetch --depth=1 origin "${{ gitea.ref_name || 'main' }}" + git checkout -f FETCH_HEAD - name: 🟢 Setup Node.js 20 uses: actions/setup-node@v4