add v back

This commit is contained in:
howardwu 2020-08-15 00:31:16 -07:00
parent e4ddb4bb57
commit b55f4bacff

View File

@ -42,16 +42,16 @@ jobs:
- name: Zip
run: |
mkdir leo_${{ steps.get_version.outputs.version-without-v }}_ubuntu
mv target/release/leo leo_${{ steps.get_version.outputs.version-without-v }}_ubuntu
zip -r leo_${{ steps.get_version.outputs.version-without-v }}_ubuntu.zip leo_${{ steps.get_version.outputs.version-without-v }}_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
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
leo_${{ steps.get_version.outputs.version-without-v }}_ubuntu.zip
leo_${{ steps.get_version.outputs.version }}_ubuntu.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -88,16 +88,16 @@ jobs:
- name: Zip
run: |
mkdir leo_${{ steps.get_version.outputs.version-without-v }}_macOS
mv target/release/leo leo_${{ steps.get_version.outputs.version-without-v }}_macOS
zip -r leo_${{ steps.get_version.outputs.version-without-v }}_macOS.zip leo_${{ steps.get_version.outputs.version-without-v }}_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_${{ steps.get_version.outputs.version-without-v }}_macOS.zip
leo_${{ steps.get_version.outputs.version }}_macos.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -135,15 +135,15 @@ jobs:
- name: Zip
run: |
mkdir leo_${{ steps.get_version.outputs.version-without-v }}_windows
mv target/release/leo.exe leo_${{ steps.get_version.outputs.version-without-v }}_windows
Compress-Archive leo_${{ steps.get_version.outputs.version-without-v }}_windows leo_${{ steps.get_version.outputs.version-without-v }}_windows.zip
mkdir leo_${{ steps.get_version.outputs.version }}_windows
mv target/release/leo.exe leo_${{ steps.get_version.outputs.version }}_windows
Compress-Archive leo_${{ steps.get_version.outputs.version }}_windows leo_${{ steps.get_version.outputs.version }}_windows.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
leo_${{ steps.get_version.outputs.version-without-v }}_windows.zip
leo_${{ steps.get_version.outputs.version }}_windows.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}