mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-25 13:53:29 +03:00
Try adding version
This commit is contained in:
parent
a0e3904b86
commit
55cc1d769c
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -39,8 +39,8 @@ jobs:
|
||||
|
||||
- name: Zip
|
||||
run: |
|
||||
mkdir leo_ubuntu && mv target/release/leo leo_ubuntu
|
||||
zip -r leo_ubuntu.zip leo_ubuntu
|
||||
mkdir leo_${{ steps.get_version.outputs.version }}_ubuntu && mv target/release/leo leo_${{ steps.get_version.outputs.version }}_ubuntu
|
||||
zip -r leo_${{ steps.get_version.outputs.version }}_ubuntu.zip leo_${{ steps.get_version.outputs.version }}_ubuntu
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
@ -79,17 +79,20 @@ jobs:
|
||||
env:
|
||||
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
||||
|
||||
- id: Fetch version number
|
||||
uses: battila7/get-version-action@v2
|
||||
|
||||
- name: Zip
|
||||
run: |
|
||||
mkdir leo_macOS && mv target/release/leo leo_macOS
|
||||
zip -r leo_macOS.zip leo_macOS
|
||||
mkdir leo_${{ steps.get_version.outputs.version }}_macOS && mv target/release/leo leo_${{ steps.get_version.outputs.version }}_macOS
|
||||
zip -r leo_${{ steps.get_version.outputs.version }}_macOS.zip leo_${{ steps.get_version.outputs.version }}_macOS
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: |
|
||||
leo_macOS.zip
|
||||
leo_${{ steps.get_version.outputs.version }}_macOS.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user