From b1a8739aa4b44a010865673f43a63bd89b7acef9 Mon Sep 17 00:00:00 2001 From: Nils Bosbach Date: Wed, 30 Nov 2022 09:29:03 +0100 Subject: [PATCH] Create folder for files Do not put the files directly in the archive but create a folder that contains the files Signed-off-by: Nils Bosbach --- .github/workflows/release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e75a4af..b523d1cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,13 +17,15 @@ jobs: uses: actions/checkout@v3 - name: Create configure script run: ./config/bootstrap - - name: Create output folder - run: mkdir output + - name: Create output folder and copy files + run: | + mkdir ${release_name} + rsync -av --progress ./ ${release_name} --exclude .git + mkdir output - name: Create zip - run: zip -r output/${release_name}.zip . -x '*.git*' -x '*output*' + run: zip -r output/${release_name}.zip ${release_name} - name: Create tar - working-directory: ./output - run: tar -czf ${release_name}.tar.gz --exclude=output --exclude=.git ../* + run: tar -cvzf output/${release_name}.tar.gz ${release_name} - uses: "marvinpinto/action-automatic-releases@v1.2.1" with: repo_token: "${{ secrets.GITHUB_TOKEN }}"