From 9fd3970f58a6f77a7aa0c3e97d6c83e9851b24c9 Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 17 Nov 2023 15:26:24 +0100 Subject: [PATCH] Verbose Moves in Release Action --- .forgejo/workflows/build+release.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index ebad2b0..fafdf4c 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -13,6 +13,13 @@ jobs: - name: Placeholder run: echo Placeholder Job + - + name: Check if Version in Cargo.toml matches Tag + run: | + VERSION=(cat src-tauri/Cargo.toml | grep -E "(^|\|)version =" | cut -f2- -d=) + if test $VERSION != ' "${{ github.ref_name }}"' + echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'" + end build: needs: test @@ -51,9 +58,9 @@ jobs: run: | echo Moving Build Artifacts to Root mkdir artifacts - mv src-tauri/target/release/comicinfo-editor-v2 artifacts/comicinfo-editor-v2-linux-amd64 - mv src-tauri/target/release/bundle/deb/*.deb artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb - mv src-tauri/target/release/bundle/appimage/*.AppImage artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage + mv -v src-tauri/target/release/comicinfo-editor-v2 artifacts/comicinfo-editor-v2-linux-amd64 + mv -v src-tauri/target/release/bundle/deb/*.deb artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb + mv -v src-tauri/target/release/bundle/appimage/*.AppImage artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage - name: Uploading Build Artifact uses: actions/upload-artifact@v3 @@ -74,7 +81,7 @@ jobs: name: Rearrange Artifact Paths run: | mkdir release - mv comicinfo-editor-v2-linux-amd64/comicinfo-editor-v2-linux-amd64/* release/ + mv -v comicinfo-editor-v2-linux-amd64/comicinfo-editor-v2-linux-amd64/* release/ - name: Upload Artifacts As Generic Packages run: |