Delete if everything is unselected
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user