From 8020dc4bd3c690f025fea2cef6e61afed3b4d6e1 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 8 Apr 2024 12:45:50 +0200 Subject: [PATCH] .github: include license file in tarballs Signed-off-by: Joachim Wiberg --- .github/workflows/build-push.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index 033e8f8..748252e 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -60,6 +60,7 @@ jobs: - name: Prepare Artifact run: | cd output + cp ../COPYING images/ mv images ${{ steps.vars.outputs.dir }} ln -s ${{ steps.vars.outputs.dir }} images tar chfz ${{ steps.vars.outputs.tgz }} ${{ steps.vars.outputs.dir }} @@ -105,6 +106,7 @@ jobs: tar xf ${file} rm -f ${file} mv ${fn}/rootfs-oci ${name}-oci-${arch}${SFX} + mv ${fn}/COPYING ${name}-oci-${arch}${SFX}/ rm -rf -- ${name}-oci-${arch}${SFX}/.[!.]* tar cfz ${name}-oci-${arch}${SFX}.tar.gz ${name}-oci-${arch}${SFX} done