mirror of
https://github.com/NohamR/GoFileCLI.git
synced 2025-05-24 00:49:00 +00:00
Update release.yml
This commit is contained in:
parent
53d1d85ac5
commit
d7660d4c9b
83
.github/workflows/release.yml
vendored
83
.github/workflows/release.yml
vendored
@ -188,53 +188,58 @@ jobs:
|
|||||||
- name: GH version
|
- name: GH version
|
||||||
run: gh --version
|
run: gh --version
|
||||||
|
|
||||||
- name: Download GoFileCLI_osx-arm64 artifact
|
- name: List artifacts
|
||||||
uses: actions/download-artifact@v3
|
run: gh run artifacts list
|
||||||
with:
|
env:
|
||||||
name: GoFileCLI_osx-arm64
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
|
||||||
- name: Download GoFileCLI_osx-x64 artifact
|
# - name: Download GoFileCLI_osx-arm64 artifact
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: GoFileCLI_osx-x64
|
# name: GoFileCLI_osx-arm64
|
||||||
|
|
||||||
- name: Download GoFileCLI_linux-x64 artifact
|
# - name: Download GoFileCLI_osx-x64 artifact
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: GoFileCLI_linux-x64
|
# name: GoFileCLI_osx-x64
|
||||||
|
|
||||||
- name: Download GoFileCLI_win-x64 artifact
|
# - name: Download GoFileCLI_linux-x64 artifact
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: GoFileCLI_win-x64
|
# name: GoFileCLI_linux-x64
|
||||||
|
|
||||||
|
# - name: Download GoFileCLI_win-x64 artifact
|
||||||
|
# uses: actions/download-artifact@v3
|
||||||
|
# with:
|
||||||
|
# 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 }}
|
Loading…
x
Reference in New Issue
Block a user