This commit is contained in:
		| @@ -18,13 +18,6 @@ jobs: | |||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
|         with: |         with: | ||||||
|           fetch-depth: 1       # <— wichtig: keine alte Historie |           fetch-depth: 1       # <— wichtig: keine alte Historie | ||||||
|           lfs: true            # falls LFS-Dateien im aktuellen Commit liegen |  | ||||||
|  |  | ||||||
|       - name: Install git-lfs |  | ||||||
|         run: | |  | ||||||
|           sudo apt-get update |  | ||||||
|           sudo apt-get install -y git-lfs |  | ||||||
|           git lfs install |  | ||||||
|  |  | ||||||
|       - name: Add GitHub remote |       - name: Add GitHub remote | ||||||
|         env: |         env: | ||||||
| @@ -42,15 +35,3 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           # force ist i. d. R. nicht nötig; nur, wenn du auf GitHub main überschreiben willst |           # force ist i. d. R. nicht nötig; nur, wenn du auf GitHub main überschreiben willst | ||||||
|           git push mirror HEAD:refs/heads/main |           git push mirror HEAD:refs/heads/main | ||||||
|  |  | ||||||
|       - name: Push LFS objects for current commit |  | ||||||
|         env: |  | ||||||
|           GH_USER: ${{ secrets.GH_USER }} |  | ||||||
|           GH_TOKEN: ${{ secrets.GH_TOKEN }} |  | ||||||
|           GH_OWNER: ${{ secrets.GH_OWNER }} |  | ||||||
|           GH_REPO: ${{ secrets.GH_REPO }} |  | ||||||
|         run: | |  | ||||||
|           set -euo pipefail |  | ||||||
|           REMOTE="https://${GH_USER}:${GH_TOKEN}@github.com/${GH_OWNER}/${GH_REPO}.git" |  | ||||||
|           # Nur Objekte, die lokal vorhanden sind (durch lfs: true) – somit kein Altbestand |  | ||||||
|           git lfs push "$REMOTE" --all |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user