From 3d3eaaf7f7ccb2a39f5f508e11344ffff2470529 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 13 Aug 2024 12:52:31 +0200 Subject: [PATCH] includes images in releases --- .forgejo/workflows/publish.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 9afee19..a85c006 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -8,9 +8,22 @@ jobs: container: image: ghcr.io/catthehacker/ubuntu:act-latest steps: - - name: Checkout + - name: Checkout Code uses: actions/checkout@v4 + - name: Checkout LFS + run: | + # Replace double auth header, see https://github.com/actions/checkout/issues/1830 + UrlLfsBase=${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects; \ + Auth=`/usr/bin/git config --get --local http.${{ github.server_url }}/.extraheader`; \ + /usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \ + /usr/bin/git config --local http.${UrlLfsBase}/.extraheader '' + + # Get files + /usr/bin/git config --local lfs.transfer.maxretries 1 + /usr/bin/git lfs fetch origin refs/remotes/origin/${{ github.ref_name }} + /usr/bin/git lfs checkout + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3