From cfded9bacce8ea89c1dc824abe7be1b7139dee0e Mon Sep 17 00:00:00 2001 From: Ahmed Faruq <37757164+devsrealm@users.noreply.github.com> Date: Wed, 9 Jun 2021 12:25:43 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9722e85..3b888de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -78,12 +78,15 @@ jobs: with: name: github-actions-demo.zip path: github-actions-demo.zip - - name: Upload to release - uses: JasonEtco/upload-to-release@master + - name: Upload Release + uses: svenstaro/upload-release-action@v2 with: - args: github-actions-demo.zip application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: github-actions-demo.zip + asset_name: github-actions-demo + tag: ${{ github.ref }} + overwrite: true + body: "Latest Release" deploy: needs: [build] # The below only runs if the build is succesful