From ed64ce59057c03d25dd6cb488ca28a3cf8ea04d1 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 8 Jun 2021 19:37:45 +0530 Subject: [PATCH] [build] Release `yt-dlp.tar.gz` Closes #386 --- .github/workflows/build.yml | 11 ++++++++++- Makefile | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c02f45b14..d4321da0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: - name: Print version run: echo "${{ steps.bump_version.outputs.ytdlp_version }}" - name: Run Make - run: make + run: make all tar - name: Create Release id: create_release uses: actions/create-release@v1 @@ -53,6 +53,15 @@ jobs: asset_path: ./yt-dlp asset_name: yt-dlp asset_content_type: application/octet-stream + - name: Upload Source tar + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./yt-dlp.tar.gz + asset_name: yt-dlp.tar.gz + asset_content_type: application/gzip - name: Get SHA2-256SUMS for yt-dlp id: sha256_file run: echo "::set-output name=sha256_unix::$(sha256sum yt-dlp | awk '{print $1}')" diff --git a/Makefile b/Makefile index d387434a2..aad312362 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ completion-zsh: completions/zsh/_yt-dlp lazy-extractors: yt_dlp/extractor/lazy_extractors.py PREFIX ?= /usr/local +DESTDIR ?= . BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/man SHAREDIR ?= $(PREFIX)/share