feat: workflow

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2023-10-15 00:36:23 +03:00
parent 7cd8220454
commit f0af026f2b

View file

@ -78,8 +78,18 @@ jobs:
with: with:
path: Downloads/ path: Downloads/
- name: Unzip - name: Git Commit SHA
id: vars
run: | run: |
file -b * calculatedSha=$(git rev-parse --short ${{ github.sha }})
ls -R echo "::set-output name=short_sha::$calculatedSha"
working-directory: /home/runner/work/rust-tcp-file-transfer/rust-tcp-file-transfer/Downloads/
- 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*