feat: workflow
This commit is contained in:
parent
7cd8220454
commit
f0af026f2b
1 changed files with 14 additions and 4 deletions
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
|
@ -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/
|
||||
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*
|
Loading…
Add table
Add a link
Reference in a new issue