]> jfr.im git - yt-dlp.git/blobdiff - .github/workflows/build.yml
[update] Ability to set a maximum version for specific variants
[yt-dlp.git] / .github / workflows / build.yml
index ca17a1e59cb90a7e240cff3e4f7e0a5c086c2dee..0c88319272719bb621126791426acee33a0e9c10 100644 (file)
@@ -449,6 +449,19 @@ jobs:
         asset_name: SHA2-512SUMS
         asset_content_type: text/plain
 
+    - name: Make Update spec
+      run: |
+        echo "# This file is used for regulating self-update" >> _update_spec
+    - name: Upload update spec
+      uses: actions/upload-release-asset@v1
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      with:
+        upload_url: ${{ needs.create_release.outputs.upload_url }}
+        asset_path: ./_update_spec
+        asset_name: _update_spec
+        asset_content_type: text/plain
+
     - name: Finalize release
       env:
         GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}