From d7660d4c9b61c6819238a815b58ff0427659ed7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Sun, 25 Aug 2024 22:55:33 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 83 +++++++++++++++++++---------------- 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa891e3..a489fea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -187,54 +187,59 @@ jobs: - name: GH version run: gh --version + + - name: List artifacts + run: gh run artifacts list + env: + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} - - name: Download GoFileCLI_osx-arm64 artifact - uses: actions/download-artifact@v3 - with: - name: GoFileCLI_osx-arm64 + # - name: Download GoFileCLI_osx-arm64 artifact + # uses: actions/download-artifact@v3 + # with: + # name: GoFileCLI_osx-arm64 - - name: Download GoFileCLI_osx-x64 artifact - uses: actions/download-artifact@v3 - with: - name: GoFileCLI_osx-x64 + # - name: Download GoFileCLI_osx-x64 artifact + # uses: actions/download-artifact@v3 + # with: + # name: GoFileCLI_osx-x64 - - name: Download GoFileCLI_linux-x64 artifact - uses: actions/download-artifact@v3 - with: - name: GoFileCLI_linux-x64 + # - name: Download GoFileCLI_linux-x64 artifact + # uses: actions/download-artifact@v3 + # with: + # name: GoFileCLI_linux-x64 - - name: Download GoFileCLI_win-x64 artifact - uses: actions/download-artifact@v3 - with: - name: GoFileCLI_win-x64 + # - name: Download GoFileCLI_win-x64 artifact + # uses: actions/download-artifact@v3 + # with: + # name: GoFileCLI_win-x64 - name: List downloaded files run: | echo "Listing files in the working directory:" ls -R - - name: Tar (linux, macOS) - run: | - for file in *{osx,linux}*; do - if [ -f "$file" ]; then - tar cvzfp "${file}_${{ env.date }}.tar.gz" "$file" - fi - done + # - name: Tar (linux, macOS) + # run: | + # for file in *{osx,linux}*; do + # if [ -f "$file" ]; then + # tar cvzfp "${file}_${{ env.date }}.tar.gz" "$file" + # fi + # done - - name: Zip (windows) - run: | - for file in *win*; do - if [ -f "$file" ]; then - zip -r "${file}_${{ env.date }}.zip" "$file" - fi - done + # - name: Zip (windows) + # run: | + # for file in *win*; do + # if [ -f "$file" ]; then + # zip -r "${file}_${{ env.date }}.zip" "$file" + # fi + # done - - name: Upload - run: | - until gh release upload --clobber --repo ${{ github.repository }} ${{ github.event.inputs.tag }} *.zip *.tar.gz; do - echo "Attempt $((++attempts)) to upload release artifacts failed. Will retry in 20s" - sleep 20 - done - timeout-minutes: 10 - env: - GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} \ No newline at end of file + # - name: Upload + # run: | + # until gh release upload --clobber --repo ${{ github.repository }} ${{ github.event.inputs.tag }} *.zip *.tar.gz; do + # echo "Attempt $((++attempts)) to upload release artifacts failed. Will retry in 20s" + # sleep 20 + # done + # timeout-minutes: 10 + # env: + # GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} \ No newline at end of file