mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 04:30:46 -05:00
Capture the mega upload link. Logout and end of steps.
This commit is contained in:
parent
262a62fcb8
commit
aa65db6323
@ -327,8 +327,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mega-https on
|
mega-https on
|
||||||
mega-login "${MEGA_EMAIL}" "${MEGA_PASSWORD}"
|
mega-login "${MEGA_EMAIL}" "${MEGA_PASSWORD}"
|
||||||
|
|
||||||
mega-put -c "/workspace/refringe/Build/${{ steps.generate-filename.outputs.filename }}" "/spt-release/${{ steps.generate-filename.outputs.filename }}"
|
mega-put -c "/workspace/refringe/Build/${{ steps.generate-filename.outputs.filename }}" "/spt-release/${{ steps.generate-filename.outputs.filename }}"
|
||||||
mega-export -a "/spt-release/${{ steps.generate-filename.outputs.filename }}" -f
|
|
||||||
|
# Generate link and save it.
|
||||||
|
EXPORT_OUTPUT=$(mega-export -a "/spt-release/${{ steps.generate-filename.outputs.filename }}" -f)
|
||||||
|
LINK_MEGA=$(echo "$EXPORT_OUTPUT" | grep -o 'https://mega.nz/file/[A-Za-z0-9#_\-]*')
|
||||||
|
echo "::set-output name=link_mega::${LINK_MEGA}"
|
||||||
|
|
||||||
|
mega-logout
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
MEGA_EMAIL: ${{ secrets.MEGA_EMAIL }}
|
MEGA_EMAIL: ${{ secrets.MEGA_EMAIL }}
|
||||||
@ -357,6 +364,8 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
mega-logout
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
MEGA_EMAIL: ${{ secrets.MEGA_EMAIL }}
|
MEGA_EMAIL: ${{ secrets.MEGA_EMAIL }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user