.github/workflows/release-crates-tarball.yml

84c4617332578aaf4e9ee68a0a2d7d6258e48243
youtube-tui/.github/workflows/release-crates-tarball.yml history · blame · raw

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