Delete if everything is unselected

This commit is contained in:
Ben Sarmiento
2023-11-21 14:16:53 +01:00
parent 0f336c15df
commit 48ad2bc3bf
6 changed files with 36 additions and 22 deletions

View File

@@ -26,13 +26,18 @@ jobs:
- name: Prepare artifacts
run: |
mkdir artifacts
mv zurg-* artifacts/
mv github.com/debridmediamanager.com/zurg/cmd/zurg-* artifacts/
# New step for compressing artifacts
- name: Compress artifacts
run: |
tar -czvf artifacts.tar.gz -C artifacts .
- name: Upload artifacts to workflow
uses: actions/upload-artifact@v3
with:
name: compiled-binaries
path: artifacts/
path: artifacts.tar.gz
release:
needs: build
@@ -54,12 +59,13 @@ jobs:
draft: false
prerelease: false
# Ensure the asset_path matches the compressed file name
- name: Upload binaries to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./zurg-*
asset_name: zurg-${{ github.run_number }}-${{ github.sha }}
asset_content_type: application/octet-stream
asset_path: ./artifacts.tar.gz
asset_name: zurg-${{ github.run_number }}-${{ github.sha }}.tar.gz
asset_content_type: application/gzip