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