From cf9f3d9d0ac110508f098d66954bc81360f21142 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Mon, 20 May 2024 23:16:01 +0300 Subject: [PATCH] chore(cd): Fix the way generating the checksum Signed-off-by: Awiteb --- .forgejo/workflows/cd.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/cd.yml b/.forgejo/workflows/cd.yml index 5da5793..8f01e36 100644 --- a/.forgejo/workflows/cd.yml +++ b/.forgejo/workflows/cd.yml @@ -58,8 +58,8 @@ jobs: cp target/${{ matrix.target }}/release/$BIN_NAME.exe release-dir/$APP_NAME.exe || true cp target/${{ matrix.target }}/release/$BIN_NAME release-dir/$APP_NAME || true cd release-dir - sha256sum $APP_NAME > $APP_NAME.sha256 || true - sha256sum $APP_NAME.exe > $APP_NAME.exe.sha256 || true + test -f $APP_NAME && sha256sum $APP_NAME > $APP_NAME.sha256 || true + test -f $APP_NAME.exe && sha256sum $APP_NAME.exe > $APP_NAME.exe.sha256 || true - name: Build the asset (update-notify) run: | @@ -68,8 +68,8 @@ jobs: cp target/${{ matrix.target }}/release/$BIN_NAME.exe release-dir/$APP_NAME.exe || true cp target/${{ matrix.target }}/release/$BIN_NAME release-dir/$APP_NAME || true cd release-dir - sha256sum $APP_NAME > $APP_NAME.sha256 || true - sha256sum $APP_NAME.exe > $APP_NAME.exe.sha256 || true + test -f $APP_NAME && sha256sum $APP_NAME > $APP_NAME.sha256 || true + test -f $APP_NAME.exe && sha256sum $APP_NAME.exe > $APP_NAME.exe.sha256 || true - uses: actions/upload-artifact@v3 with: