From b52fb310be6ef97b402e0afdec89be25ddb2508a Mon Sep 17 00:00:00 2001 From: danipatko Date: Sun, 8 Feb 2026 03:05:17 +0100 Subject: [PATCH] . --- .gitea/workflows/deploy-server.yaml | 66 ++++++++++++++--------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.gitea/workflows/deploy-server.yaml b/.gitea/workflows/deploy-server.yaml index 188c4f4..3407563 100644 --- a/.gitea/workflows/deploy-server.yaml +++ b/.gitea/workflows/deploy-server.yaml @@ -22,40 +22,40 @@ jobs: mkdir -p ${{ github.workspace }} git init --object-format=sha1 ${{ github.workspace }} - # - name: Manual Checkout (SHA-1 Force) - # env: - # # This token is automatically provided by Gitea/GitHub Actions - # TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # run: | - # # 1. Clean workspace explicitly to be safe - # rm -rf ./* ./.git - - # # 2. Initialize specifically with SHA-1 - # git init --object-format=sha1 - - # # 3. Add remote with authentication embedded - # # Use the environment variable to keep the log clean - # git remote add origin "https://$TOKEN@git.dapa.hu/dapa/assetto.git" - - # # 4. Fetch the specific branch (depth 1 for speed) - # git fetch --depth=1 origin master - - # # 5. Checkout the branch - # git checkout master - - # # 6. Initialize LFS and pull files - # # Note: If this fails, it confirms the files are missing from the server (see below) - # git lfs install - # git lfs pull - - name: Checkout Master Branch (LFS) - uses: actions/checkout@v4 - with: - ref: master - lfs: true - fetch-depth: 0 - clean: false + env: + # This token is automatically provided by Gitea/GitHub Actions + TOKEN: ${{ secrets.GITHUB_TOKEN }} + + run: | + # 1. Clean workspace explicitly to be safe + rm -rf ./* ./.git + + # 2. Initialize specifically with SHA-1 + git init --object-format=sha1 + + # 3. Add remote with authentication embedded + # Use the environment variable to keep the log clean + git remote add origin "https://$TOKEN@git.dapa.hu/dapa/assetto.git" + + # 4. Fetch the specific branch (depth 1 for speed) + git fetch --depth=1 origin master + + # 5. Checkout the branch + git checkout master + + # 6. Initialize LFS and pull files + # Note: If this fails, it confirms the files are missing from the server (see below) + git lfs install + git lfs pull + + # - name: Checkout Master Branch (LFS) + # uses: actions/checkout@v4 + # with: + # ref: master + # lfs: true + # fetch-depth: 0 + # clean: false - name: Install 7-Zip run: |