Update release.yml

This commit is contained in:
√(noham)² 2024-08-25 22:55:33 +02:00
parent 53d1d85ac5
commit d7660d4c9b

View File

@ -187,54 +187,59 @@ jobs:
- name: GH version - name: GH version
run: 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 # - name: Download GoFileCLI_osx-arm64 artifact
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: GoFileCLI_osx-arm64 # name: GoFileCLI_osx-arm64
- name: Download GoFileCLI_osx-x64 artifact # - name: Download GoFileCLI_osx-x64 artifact
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: GoFileCLI_osx-x64 # name: GoFileCLI_osx-x64
- name: Download GoFileCLI_linux-x64 artifact # - name: Download GoFileCLI_linux-x64 artifact
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: GoFileCLI_linux-x64 # name: GoFileCLI_linux-x64
- name: Download GoFileCLI_win-x64 artifact # - name: Download GoFileCLI_win-x64 artifact
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: GoFileCLI_win-x64 # name: GoFileCLI_win-x64
- name: List downloaded files - name: List downloaded files
run: | run: |
echo "Listing files in the working directory:" echo "Listing files in the working directory:"
ls -R ls -R
- name: Tar (linux, macOS) # - name: Tar (linux, macOS)
run: | # run: |
for file in *{osx,linux}*; do # for file in *{osx,linux}*; do
if [ -f "$file" ]; then # if [ -f "$file" ]; then
tar cvzfp "${file}_${{ env.date }}.tar.gz" "$file" # tar cvzfp "${file}_${{ env.date }}.tar.gz" "$file"
fi # fi
done # done
- name: Zip (windows) # - name: Zip (windows)
run: | # run: |
for file in *win*; do # for file in *win*; do
if [ -f "$file" ]; then # if [ -f "$file" ]; then
zip -r "${file}_${{ env.date }}.zip" "$file" # zip -r "${file}_${{ env.date }}.zip" "$file"
fi # fi
done # done
- name: Upload # - name: Upload
run: | # run: |
until gh release upload --clobber --repo ${{ github.repository }} ${{ github.event.inputs.tag }} *.zip *.tar.gz; do # 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" # echo "Attempt $((++attempts)) to upload release artifacts failed. Will retry in 20s"
sleep 20 # sleep 20
done # done
timeout-minutes: 10 # timeout-minutes: 10
env: # env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} # GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}