From be5a7c896bdaba9cc0a14d50ffc1aa334870398d Mon Sep 17 00:00:00 2001 From: nobkd <44443899+nobkd@users.noreply.github.com> Date: Fri, 6 Dec 2024 02:28:28 +0100 Subject: [PATCH] fix --- .github/workflows/push-examples.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-examples.yaml b/.github/workflows/push-examples.yaml index 8190cf94..fc213b3d 100644 --- a/.github/workflows/push-examples.yaml +++ b/.github/workflows/push-examples.yaml @@ -37,12 +37,16 @@ jobs: # creates archive of dir, removes img dirs, moves content to subdir "source" - name: Create test archive - run: tar -C "${{ env.dir }}" --exclude "*/img" --transform "s/^\./source/" -cf "${{ env.dir }}test.tar.gz" . + run: tar -C "${{ env.dir }}" --exclude "*/img" --transform "s/^\.\//source\//" -cf "${{ env.dir }}test.tar.gz" . if: ${{ matrix.dir == 'simple-blog' }} # creates archive of dir, moves content to subdir "source" - name: Create source archive run: git archive --prefix "source/" -o "${{ env.dir }}source.tar.gz" HEAD:${{ env.dir }} + + # Copy source archive, to allow old source path on web server. Step should get removed after new release and a bit of time + - name: Duplicate source archive + run: cp "${{ env.dir }}source.tar.gz" "${{ env.dir }}${{ matrix.dir }}.tar.gz" - name: Nue build uses: ./.github/workflows/repo/build-page