update release.yml to support snap package

This commit is contained in:
Julian Chen 2024-01-17 15:30:48 +08:00 committed by GitHub
parent 9be3490eaf
commit 8e8155856e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,6 +51,10 @@ jobs:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: /usr/bin/aarch64-linux-gnu-gcc CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: /usr/bin/aarch64-linux-gnu-gcc
run: cargo build --release --locked --target ${{ matrix.target }} run: cargo build --release --locked --target ${{ matrix.target }}
- name: Build-snap
if: matrix.target == 'x86_64-unknown-linux-gnu'
uses: snapcore/action-build@v1
- name: Pack artifacts [Linux & macOS] - name: Pack artifacts [Linux & macOS]
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
env: env:
@ -78,5 +82,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
draft: true draft: true
files: yazi-${{ matrix.target }}.zip files: |
yazi-${{ matrix.target }}.zip
yazi*.snap
generate_release_notes: true generate_release_notes: true