.github/workflows/release-crates-tarball.yml
29 lines · 710 bytes
1name: "Release Crates Tarball"
2on:
3 push:
4 tags:
5 - 'v*'
6
7jobs:
8 release-tarball:
9 name: Generate and Upload Vendor Tarball
10 runs-on: ubuntu-latest
11 permissions:
12 contents: write
13 steps:
14 - uses: actions/checkout@v4
15
16 - name: Install Rust
17 uses: dtolnay/rust-toolchain@stable
18
19 - name: Vendor Dependencies
20 run: |
21 # Generate the vendor directory
22 cargo vendor
23 # Archive it into a tarball
24 tar -cJf youtube-tui-${{ github.ref_name }}-crates.tar.xz vendor/
25
26 - name: Upload Release Asset
27 uses: softprops/action-gh-release@v2
28 with:
29 files: youtube-tui-${{ github.ref_name }}-crates.tar.xz