From f0af026f2bd26c8f661af5dd77c48adb0ba3ddce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com> Date: Sun, 15 Oct 2023 00:36:23 +0300 Subject: [PATCH] feat: workflow --- .github/workflows/rust.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1f3de23..c13f886 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -78,8 +78,18 @@ jobs: with: path: Downloads/ - - name: Unzip + - name: Git Commit SHA + id: vars run: | - file -b * - ls -R - working-directory: /home/runner/work/rust-tcp-file-transfer/rust-tcp-file-transfer/Downloads/ \ No newline at end of file + calculatedSha=$(git rev-parse --short ${{ github.sha }}) + echo "::set-output name=short_sha::$calculatedSha" + + - name: Release + uses: softprops/action-gh-release@v0.1.15 + with: + tag_name: ${{ steps.vars.outputs.short_sha }} + generate_release_notes: true + files: | + Downloads/*linux*/*linux* + Downloads/*windows*/*windows* + Downloads/*macos*/*macos* \ No newline at end of file