From a68685bbc46ad75bcafa404e248d0254526c7be9 Mon Sep 17 00:00:00 2001 From: dragoudin <94975153+dragoudin@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:29:33 +0100 Subject: [PATCH] Update download.yml --- .github/workflows/download.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml index ec0c19f..a28da25 100644 --- a/.github/workflows/download.yml +++ b/.github/workflows/download.yml @@ -4,20 +4,20 @@ on: types: - created jobs: - build: + download-and-add-artifact: runs-on: ubuntu-latest steps: - name: Download file - run: | - # Téléchargez le fichier depuis l'URL - curl -L -o "tsmaster_${{ github.ref_name }}.exe" "http://www.tosun.tech/TOSUNSoftware/TSMaster_Setup_alpha.exe" - + uses: actions/download-artifact@v2 + with: + name: tsmaster_${{ github.ref_name }}.exe + url: http://www.tosun.tech/TOSUNSoftware/TSMaster_Setup_alpha.exe + - name: Add tsmaster to release assets id: upload_asset uses: actions/upload-release-asset@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: "tsmaster_${{ github.ref_name }}.exe" + upload_url: ${{ github.event.release.upload_url }} asset_name: tsmaster_${{ github.ref_name }}.exe asset_content_type: application/octet-stream