From 26c54e0b7b603f8b4a4e8d4dcc9c3e097dee5c02 Mon Sep 17 00:00:00 2001 From: Nik Rozman Date: Tue, 22 Apr 2025 22:20:06 +0200 Subject: [PATCH] Another attempt at fixing pipeline --- .github/workflows/build_prepare.yaml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_prepare.yaml b/.github/workflows/build_prepare.yaml index 9c128e5..370f15e 100644 --- a/.github/workflows/build_prepare.yaml +++ b/.github/workflows/build_prepare.yaml @@ -66,26 +66,25 @@ jobs: fi - name: Install and configure MinIO Client - env: - S3_AK: ${{ secrets.S3_AK }} - S3_SK: ${{ secrets.S3_SK }} shell: bash run: | # Download MinIO client wget https://dl.min.io/client/mc/release/linux-amd64/mc chmod +x mc - # Verify environment variables - if [ -z "$S3_AK" ] || [ -z "$S3_SK" ]; then - echo "Error: S3 credentials not set" - exit 1 - fi - # Set and verify alias - ./mc alias set s3 https://s3.piskot.si "$S3_AK" "$S3_SK" - if ! ./mc alias list | grep -q "s3"; then + ./mc alias set s3piskot https://s3.piskot.si ${{ secrets.S3_AK }} ${{ secrets.S3_SK }} + if ! ./mc alias list | grep -q "s3piskot"; then echo "Error: Failed to set S3 alias" exit 1 fi echo "Successfully configured MinIO client" + + - name: Upload cache files + run: | + # Upload cache files to MinIO + ./mc cp webapp.asar s3piskot/element-desktop/staging/ + ./mc cp package.json s3piskot/element-desktop/staging/ + ./mc cp electronVersion s3piskot/element-desktop/staging/ + ./mc cp hakHash s3piskot/element-desktop/staging/ \ No newline at end of file