From 73f2b90482fd3327647a746a9e79a49e7ff42fe7 Mon Sep 17 00:00:00 2001 From: Neshura Date: Thu, 28 Dec 2023 23:43:18 +0100 Subject: [PATCH] Fix release blobs artifacts --- .forgejo/workflows/build+release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index 6755c1d..3d99d5b 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -58,25 +58,26 @@ jobs: name: Installing cargo-deb run: | cargo install cargo-deb + - + name: Prepare build environment + run: mkdir dist - name: Compiling To Linux Target run: | cargo build -r - mv target/release/${{ github.event.repository.name }} ${{ github.event.repository.name }}-linux-amd64 + mv target/release/${{ github.event.repository.name }} dist/${{ github.event.repository.name }}-linux-amd64 - name: Bundle .deb package run: | cargo deb DEBIAN_REF=$(echo ${{ github.ref_name }} | tr - \~) - mv target/debian/${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb ${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb + mv target/debian/${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb dist/${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb - name: Uploading Build Artifact uses: actions/upload-artifact@v3 with: name: release_blobs - path: | - ${{ github.event.repository.name }}-linux-amd64 - ${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb + path: dist if-no-files-found: error upload-release: