0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 15:10:45 -05:00

Updates to absolute paths

This commit is contained in:
Refringe 2024-04-26 00:47:20 -04:00
parent b60d15a40a
commit ca722b3614
Signed by: Refringe
GPG Key ID: 7715B85B4A6306ED

View File

@ -531,7 +531,8 @@ jobs:
CLIENT_VERSION=${{ needs.prepare.outputs.client_version }}
FILE_HASH=${{ steps.compress-release.outputs.file_hash }}
cd /workspace/SPT-AKI/Build/release
cd /workspace/SPT-AKI/Build
ls -lah
# Configure Rclone
echo '[r2]
@ -541,7 +542,7 @@ jobs:
secret_access_key = ${{ secrets.R2_SECRET_ACCESS_KEY }}
region = auto
endpoint = ${{ secrets.R2_ENDPOINT }}
acl = public-read' > rclone.conf
acl = public-read' > /workspace/SPT-AKI/Build/rclone.conf
# Generate JSON file
echo '{
@ -551,18 +552,18 @@ jobs:
"DownloadUrl": "${{ secrets.R2_FRONT }}/${{ steps.generate-filename.outputs.build_name }}",
"Hash": "${FILE_HASH}"
}]
}' > release.json
}' > /workspace/SPT-AKI/Build/release.json
rclone --version
ls -lah
# Remove old 7z files from the bucket
rclone delete r2:/${{ secrets.R2_BUCKET_NAME }}/*.7z --config rclone.conf
rclone delete r2:/${{ secrets.R2_BUCKET_NAME }}/*.7z --config /workspace/SPT-AKI/Build/rclone.conf
# 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 rclone.conf
rclone 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
rclone copy "/workspace/SPT-AKI/Build/release.json" r2:/${{ secrets.R2_BUCKET_NAME }} --config rclone.conf
rclone copy "/workspace/SPT-AKI/Build/release.json" r2:/${{ secrets.R2_BUCKET_NAME }} --config /workspace/SPT-AKI/Build/rclone.conf
shell: bash
- name: Upload Release to HTTPS Source