mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-12 20:50:45 -05:00
Verbose Rclone calls and use environment variables instead of local
This commit is contained in:
parent
ca722b3614
commit
950c4f1740
@ -526,13 +526,12 @@ jobs:
|
|||||||
|
|
||||||
- name: R2 Upload
|
- name: R2 Upload
|
||||||
if: needs.prepare.outputs.build_type == 'release'
|
if: needs.prepare.outputs.build_type == 'release'
|
||||||
|
env:
|
||||||
|
SPT_VERSION: ${{ needs.prepare.outputs.spt_version }}
|
||||||
|
CLIENT_VERSION: ${{ needs.prepare.outputs.client_version }}
|
||||||
|
FILE_HASH: ${{ steps.compress-release.outputs.file_hash }}
|
||||||
run: |
|
run: |
|
||||||
SPT_VERSION=${{ needs.prepare.outputs.spt_version }}
|
|
||||||
CLIENT_VERSION=${{ needs.prepare.outputs.client_version }}
|
|
||||||
FILE_HASH=${{ steps.compress-release.outputs.file_hash }}
|
|
||||||
|
|
||||||
cd /workspace/SPT-AKI/Build
|
cd /workspace/SPT-AKI/Build
|
||||||
ls -lah
|
|
||||||
|
|
||||||
# Configure Rclone
|
# Configure Rclone
|
||||||
echo '[r2]
|
echo '[r2]
|
||||||
@ -544,7 +543,7 @@ jobs:
|
|||||||
endpoint = ${{ secrets.R2_ENDPOINT }}
|
endpoint = ${{ secrets.R2_ENDPOINT }}
|
||||||
acl = public-read' > /workspace/SPT-AKI/Build/rclone.conf
|
acl = public-read' > /workspace/SPT-AKI/Build/rclone.conf
|
||||||
|
|
||||||
# Generate JSON file
|
# Generate Release JSON File
|
||||||
echo '{
|
echo '{
|
||||||
"AkiVersion": "${SPT_VERSION}",
|
"AkiVersion": "${SPT_VERSION}",
|
||||||
"ClientVersion": "${CLIENT_VERSION}",
|
"ClientVersion": "${CLIENT_VERSION}",
|
||||||
@ -557,13 +556,13 @@ jobs:
|
|||||||
ls -lah
|
ls -lah
|
||||||
|
|
||||||
# Remove old 7z files from the bucket
|
# Remove old 7z files from the bucket
|
||||||
rclone delete r2:/${{ secrets.R2_BUCKET_NAME }}/*.7z --config /workspace/SPT-AKI/Build/rclone.conf
|
rclone -v delete r2:/${{ secrets.R2_BUCKET_NAME }}/*.7z --config /workspace/SPT-AKI/Build/rclone.conf
|
||||||
|
|
||||||
# Upload the file using rclone with the above config
|
# Upload the file using rclone with the above config
|
||||||
rclone copy "/workspace/SPT-AKI/Build/${{ steps.generate-filename.outputs.build_name }}" r2:/${{ secrets.R2_BUCKET_NAME }} --config /workspace/SPT-AKI/Build/rclone.conf
|
rclone -v copy "/workspace/SPT-AKI/Build/${{ steps.generate-filename.outputs.build_name }}" r2:/${{ secrets.R2_BUCKET_NAME }} --config /workspace/SPT-AKI/Build/rclone.conf
|
||||||
|
|
||||||
# Upload the JSON file using rclone with the above config
|
# Upload the JSON file using rclone with the above config
|
||||||
rclone copy "/workspace/SPT-AKI/Build/release.json" r2:/${{ secrets.R2_BUCKET_NAME }} --config /workspace/SPT-AKI/Build/rclone.conf
|
rclone -v copy "/workspace/SPT-AKI/Build/release.json" r2:/${{ secrets.R2_BUCKET_NAME }} --config /workspace/SPT-AKI/Build/rclone.conf
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Upload Release to HTTPS Source
|
- name: Upload Release to HTTPS Source
|
||||||
|
Loading…
x
Reference in New Issue
Block a user