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