From ef35c4471de877370490f6223fb23c014bb187eb Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Tue, 22 Jul 2025 10:33:48 -0700 Subject: [PATCH] Fixing issue uploading tgz linux builds in github action --- .github/workflows/release.yml | 47 +++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14bb7a6..2d80d05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,28 +30,33 @@ jobs: - name: Build Debian package run: | cargo deb --no-build --target x86_64-unknown-linux-musl \ - --output target/release/kingfisher-amd64.deb + --output target/release/kingfisher-linux-x64.deb - name: Build RPM package run: | cargo generate-rpm --target x86_64-unknown-linux-musl \ - --output target/release/kingfisher-amd64.rpm + --output target/release/kingfisher-linux-x64.rpm - name: Move artifact to dist shell: bash run: | mkdir -p dist cp target/release/kingfisher-linux-x64.tgz dist/ - cp target/release/kingfisher-amd64.deb dist/ - cp target/release/kingfisher-amd64.rpm dist/ + cp target/release/kingfisher-linux-x64.deb dist/ + cp target/release/kingfisher--linuxx64.rpm dist/ - uses: actions/upload-artifact@v4 with: - name: kingfisher-linux-x64 - path: | - dist/kingfisher-linux-x64.tgz - dist/kingfisher-amd64.deb - dist/kingfisher-amd64.rpm + name: kingfisher-linux-x64.tgz + path: dist/kingfisher-linux-x64.tgz + - uses: actions/upload-artifact@v4 + with: + name: kingfisher-linux-x64.deb + path: dist/kingfisher-linux-x64.deb + - uses: actions/upload-artifact@v4 + with: + name: kingfisher-linux-x64.rpm + path: dist/kingfisher-linux-x64.rpm linux-arm64: name: Linux arm64 @@ -76,29 +81,33 @@ jobs: - name: Build Debian package run: | cargo deb --no-build --target aarch64-unknown-linux-musl \ - --output target/release/kingfisher-arm64.deb + --output target/release/kingfisher-linux-arm64.deb - name: Build RPM package run: | cargo generate-rpm --target aarch64-unknown-linux-musl \ - --output target/release/kingfisher-arm64.rpm + --output target/release/kingfisher-linux-arm64.rpm - name: Move artifact to dist shell: bash run: | mkdir -p dist cp target/release/kingfisher-linux-arm64.tgz dist/ - cp target/release/kingfisher-arm64.deb dist/ - cp target/release/kingfisher-arm64.rpm dist/ + cp target/release/kingfisher-linux-arm64.deb dist/ + cp target/release/kingfisher-linux-arm64.rpm dist/ - uses: actions/upload-artifact@v4 with: - name: kingfisher-linux-arm64 - path: | - dist/kingfisher-linux-arm64.tgz - dist/kingfisher-arm64.deb - dist/kingfisher-arm64.rpm - + name: kingfisher-linux-arm64.tgz + path: dist/kingfisher-linux-arm64.tgz + - uses: actions/upload-artifact@v4 + with: + name: kingfisher-linux-arm64.deb + path: dist/kingfisher-linux-arm64.deb + - uses: actions/upload-artifact@v4 + with: + name: kingfisher-linux-arm64.rpm + path: dist/kingfisher-linux-arm64.rpm macos-x64: name: macOS x64