mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 03:33:44 +03:00
Update release.yml packaging convention
This commit is contained in:
parent
16f0e0b5f6
commit
5781a1a357
33
.github/workflows/release.yml
vendored
33
.github/workflows/release.yml
vendored
@ -42,16 +42,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Zip
|
- name: Zip
|
||||||
run: |
|
run: |
|
||||||
mkdir leo_${{ steps.get_version.outputs.version }}_ubuntu
|
mkdir tempdir
|
||||||
mv target/release/leo leo_${{ steps.get_version.outputs.version }}_ubuntu
|
mv target/release/leo tempdir
|
||||||
zip -r leo_${{ steps.get_version.outputs.version }}_ubuntu.zip leo_${{ steps.get_version.outputs.version }}_ubuntu
|
cd tempdir
|
||||||
|
zip -r leo-${{ steps.get_version.outputs.version }}-x86_64-unknown-linux-gnu.zip leo
|
||||||
|
cd ..
|
||||||
|
mv tempdir/leo-${{ steps.get_version.outputs.version }}-x86_64-unknown-linux-gnu.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 }}_ubuntu.zip
|
leo-${{ steps.get_version.outputs.version }}-x86_64-unknown-linux-gnu.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@ -88,16 +91,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Zip
|
- name: Zip
|
||||||
run: |
|
run: |
|
||||||
mkdir leo_${{ steps.get_version.outputs.version }}_mac
|
mkdir tempdir
|
||||||
mv target/release/leo leo_${{ steps.get_version.outputs.version }}_mac
|
mv target/release/leo tempdir
|
||||||
zip -r leo_${{ steps.get_version.outputs.version }}_mac.zip leo_${{ steps.get_version.outputs.version }}_mac
|
cd tempdir
|
||||||
|
zip -r leo-${{ steps.get_version.outputs.version }}-x86_64-apple-darwin.zip leo
|
||||||
|
cd ..
|
||||||
|
mv tempdir/leo-${{ steps.get_version.outputs.version }}-x86_64-apple-darwin.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 }}_mac.zip
|
leo-${{ steps.get_version.outputs.version }}-x86_64-apple-darwin.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@ -135,15 +141,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Zip
|
- name: Zip
|
||||||
run: |
|
run: |
|
||||||
mkdir leo_${{ steps.get_version.outputs.version }}_windows
|
mkdir tempdir
|
||||||
mv target/release/leo.exe leo_${{ steps.get_version.outputs.version }}_windows
|
mv target/release/leo tempdir
|
||||||
Compress-Archive leo_${{ steps.get_version.outputs.version }}_windows leo_${{ steps.get_version.outputs.version }}_windows.zip
|
cd tempdir
|
||||||
|
Compress-Archive leo-${{ steps.get_version.outputs.version }}-x86_64-pc-windows-gnu leo
|
||||||
|
cd ..
|
||||||
|
mv leo-${{ steps.get_version.outputs.version }}-x86_64-pc-windows-gnu .
|
||||||
|
|
||||||
- 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 }}_windows.zip
|
leo-${{ steps.get_version.outputs.version }}-x86_64-pc-windows-gnu.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user