Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
took `upload-binaries` from paru also
  • Loading branch information
Toni500github authored Apr 12, 2024
1 parent b5f1202 commit 91336ac
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: release test

on:
push:
branches: [ "libalpm-test", "dev" ]
branches: "dev"

jobs:
get-version:
Expand Down Expand Up @@ -58,3 +58,23 @@ jobs:
release_name: TabAUR ${{ needs.get-version.outputs.version }}
draft: true
prerelease: false

upload-binaries:
name: Upload binaries to Githib relase
runs-on: ubuntu-latest
needs: [release, get-version]
strategy:
matrix:
arch: [x86_64, aarch64, armv7h]
steps:
- uses: actions/download-artifact@v3
with:
name: tabaur-${{ matrix.arch }}
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.release-url }}
asset_name: tabaur-${{ needs.get-version.outputs.version }}-${{ matrix.arch }}.tar.zst
asset_path: tabaur.tar.zst
asset_content_type: application/tar+zstd

0 comments on commit 91336ac

Please sign in to comment.