From bb654f62b15dbf21a23e60e167da19ffd9d12181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 2 Aug 2024 10:31:11 -0300 Subject: [PATCH] CI: Fix artifacts name to follow tag and hash information MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c114c86bf..e3435e66f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive + fetch-tags: true - uses: oven-sh/setup-bun@v1 with: @@ -92,11 +93,16 @@ jobs: bun run build bun deploy:electron + - name: Build name + run: | + echo "full_tag_name=$(git describe --tags)" >> $GITHUB_OUTPUT + mv dist/Cockpit*.${{ matrix.extension }} dist/Cockpit-${{ matrix.suffix }}-${{ steps.prepare.outputs.full_tag_name }}.${{ matrix.extension }} + - name: Upload Artifact uses: actions/upload-artifact@v3 with: name: cockpit-${{ matrix.suffix }} - path: dist/Cockpit*.${{ matrix.extension }} + path: dist/Cockpit-${{ matrix.suffix }}-*.${{ matrix.extension }} if-no-files-found: error - name: Upload Release @@ -104,7 +110,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') && success() with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: dist/Cockpit*.${{ matrix.extension }} + path: dist/Cockpit-${{ matrix.suffix }}-*.${{ matrix.extension }} tag: ${{ github.ref }} overwrite: true prerelease: true @@ -119,6 +125,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive + fetch-tags: true - uses: oven-sh/setup-bun@v1 with: @@ -137,6 +144,11 @@ jobs: bun run build env DEBUG="@malept/flatpak-bundler" bun deploy:flatpak + - name: Build name + run: | + echo "full_tag_name=$(git describe --tags)" >> $GITHUB_OUTPUT + mv dist/Cockpit*.${{ matrix.extension }} dist/Cockpit-${{ matrix.suffix }}-${{ steps.prepare.outputs.full_tag_name }}.flatpak + - name: Upload Artifact uses: actions/upload-artifact@v3 with: