From 9ee0869a36237c0254bfdfc6cd8c30874372da37 Mon Sep 17 00:00:00 2001 From: Domenico Iezzi Date: Wed, 11 Dec 2024 09:55:53 +0100 Subject: [PATCH] Test new release script --- .github/workflows/release.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f14d68..fab926d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,16 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Extract commit SHA - shell: bash - run: | - echo "SHORT_SHA=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" - - name: Download artifacts from latest workflow uses: dawidd6/action-download-artifact@v3 with: @@ -30,13 +20,23 @@ jobs: workflow_conclusion: success skip_unpack: false - - name: Rename build artifacts + - name: Prepare linux package + run: | + mkdir linux-bundle && cd linux-bundle + unzip ../tricore-gcc-artifacts/linux.zip + unzip ../tricore-qemu-artifacts/linux.zip + zip -r9X tricore-gcc-${{ github.ref_name }}-linux.zip ./* + + - name: Prepare windows package run: | - mv tricore-gcc-artifacts/linux.zip tricore-gcc-11.3.1-${{ env.SHORT_SHA }}-linux.zip - mv tricore-gcc-artifacts/win32.zip tricore-gcc-11.3.1-${{ env.SHORT_SHA }}-win32.zip + mkdir win32-bundle && cd win32-bundle + unzip ../tricore-gcc-artifacts/win32.zip + unzip ../tricore-qemu-artifacts/win32.zip + zip -r9X tricore-gcc-${{ github.ref_name }}-win32.zip ./* - name: Push release artifacts uses: softprops/action-gh-release@v2 with: files: | - *.zip \ No newline at end of file + linux-bundle/*.zip + win32-bundle/*.zip \ No newline at end of file