Skip to content

Commit 3e291ff

Browse files
committed
Rename release every build
1 parent 6572d74 commit 3e291ff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ jobs:
44
build_linux:
55
name: Build Linux x86_64
66
runs-on: ubuntu-latest
7+
outputs:
8+
sha7: ${{ steps.sha7.sha7 }}
79
steps:
810
- name: Checkout
911
uses: actions/checkout@v2
@@ -24,6 +26,10 @@ jobs:
2426
with:
2527
name: linux64.bin
2628
path: target/release/rust-deploy-test
29+
- name: Export SHA7
30+
id: sha7
31+
run: |
32+
echo ::set-output name=sha7::$(git rev-parse --short HEAD)
2733
build_mac:
2834
name: Build macOS x86_64
2935
runs-on: macos-latest
@@ -97,7 +103,7 @@ jobs:
97103
uses: softprops/action-gh-release@v1
98104
if: ${{ github.ref == 'refs/heads/main' }}
99105
with:
100-
name: Latest commit
106+
name: Latest commit (${{needs.build_linux.outputs.sha7}})
101107
tag_name: latest
102108
prerelease: true
103109
files: |

0 commit comments

Comments
 (0)