Refactor MinIO client setup to use action and streamline upload commands
Some checks failed
Build Windows Package / setup (push) Has been cancelled
Build Windows Package / Windows Build (push) Has been cancelled
Build Windows Package / fetch (push) Has been cancelled
Build Windows Package / setup (pull_request) Has been cancelled
Build Windows Package / Windows Build (pull_request) Has been cancelled
Build Windows Package / fetch (pull_request) Has been cancelled
Pull Request / action (pull_request_target) Failing after 1s
Some checks failed
Build Windows Package / setup (push) Has been cancelled
Build Windows Package / Windows Build (push) Has been cancelled
Build Windows Package / fetch (push) Has been cancelled
Build Windows Package / setup (pull_request) Has been cancelled
Build Windows Package / Windows Build (pull_request) Has been cancelled
Build Windows Package / fetch (pull_request) Has been cancelled
Pull Request / action (pull_request_target) Failing after 1s
This commit is contained in:
22
.github/workflows/build_prepare.yaml
vendored
22
.github/workflows/build_prepare.yaml
vendored
@@ -65,15 +65,13 @@ jobs:
|
|||||||
find scripts/hak -type f -print0 | sort -z | xargs -0 sha1sum >> hakHash
|
find scripts/hak -type f -print0 | sort -z | xargs -0 sha1sum >> hakHash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install and configure MinIO Client
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
# Download MinIO client
|
|
||||||
wget https://dl.min.io/client/mc/release/linux-amd64/mc
|
|
||||||
chmod +x mc
|
|
||||||
|
|
||||||
# Set and verify alias
|
- name: Setup MinIO client
|
||||||
./mc alias set s3piskot https://s3.piskot.si ${{ secrets.S3_AK }} ${{ secrets.S3_SK }}
|
uses: yakubique/setup-minio-cli@v1
|
||||||
|
|
||||||
|
- name: Configure MinIO client
|
||||||
|
run: |
|
||||||
|
mc alias set s3piskot https://s3.piskot.si ${{ secrets.S3_AK }} ${{ secrets.S3_SK }}
|
||||||
if ! ./mc alias list | grep -q "s3piskot"; then
|
if ! ./mc alias list | grep -q "s3piskot"; then
|
||||||
echo "Error: Failed to set S3 alias"
|
echo "Error: Failed to set S3 alias"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -84,7 +82,7 @@ jobs:
|
|||||||
- name: Upload cache files
|
- name: Upload cache files
|
||||||
run: |
|
run: |
|
||||||
# Upload cache files to MinIO
|
# Upload cache files to MinIO
|
||||||
./mc cp webapp.asar s3piskot/element-desktop/staging/
|
mc cp webapp.asar s3piskot/element-desktop/staging/
|
||||||
./mc cp package.json s3piskot/element-desktop/staging/
|
mc cp package.json s3piskot/element-desktop/staging/
|
||||||
./mc cp electronVersion s3piskot/element-desktop/staging/
|
mc cp electronVersion s3piskot/element-desktop/staging/
|
||||||
./mc cp hakHash s3piskot/element-desktop/staging/
|
mc cp hakHash s3piskot/element-desktop/staging/
|
||||||
Reference in New Issue
Block a user