Try adding version

This commit is contained in:
howardwu 2020-08-14 21:34:15 -07:00
parent a0e3904b86
commit 55cc1d769c

View File

@ -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 }}