ci: package release artifacts as tar.gz/zip archives
Release / Build aarch64-unknown-linux-gnu (push) Has been cancelled
Release / Build aarch64-apple-darwin (push) Has been cancelled
Release / Build aarch64-pc-windows-msvc (push) Has been cancelled
Release / Build x86_64-unknown-linux-gnu (push) Has been cancelled
Release / Build x86_64-apple-darwin (push) Has been cancelled
Release / Build x86_64-pc-windows-msvc (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled
Release / Build aarch64-unknown-linux-gnu (push) Has been cancelled
Release / Build aarch64-apple-darwin (push) Has been cancelled
Release / Build aarch64-pc-windows-msvc (push) Has been cancelled
Release / Build x86_64-unknown-linux-gnu (push) Has been cancelled
Release / Build x86_64-apple-darwin (push) Has been cancelled
Release / Build x86_64-pc-windows-msvc (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled
This commit is contained in:
@@ -60,22 +60,26 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release --target ${{ matrix.target }}
|
run: cargo build --release --target ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Rename binary (Unix)
|
- name: Package (Unix)
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
run: |
|
run: |
|
||||||
cp target/${{ matrix.target }}/release/sshell ${{ matrix.artifact }}
|
cp target/${{ matrix.target }}/release/sshell sshell
|
||||||
chmod +x ${{ matrix.artifact }}
|
chmod +x sshell
|
||||||
|
tar czf ${{ matrix.artifact }}.tar.gz sshell
|
||||||
|
|
||||||
- name: Rename binary (Windows)
|
- name: Package (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: |
|
run: |
|
||||||
copy target\${{ matrix.target }}\release\sshell.exe ${{ matrix.artifact }}
|
copy target\${{ matrix.target }}\release\sshell.exe sshell.exe
|
||||||
|
Compress-Archive -Path sshell.exe -DestinationPath ${{ matrix.artifact }}.zip
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact }}
|
name: ${{ matrix.artifact }}
|
||||||
path: ${{ matrix.artifact }}
|
path: |
|
||||||
|
${{ matrix.artifact }}.tar.gz
|
||||||
|
${{ matrix.artifact }}.zip
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create GitHub Release
|
name: Create GitHub Release
|
||||||
@@ -93,4 +97,6 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: artifacts/*
|
files: |
|
||||||
|
artifacts/*.tar.gz
|
||||||
|
artifacts/*.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user