Skip to content

Commit

Permalink
Minio install has its own step
Browse files Browse the repository at this point in the history
  • Loading branch information
eltorio committed Apr 3, 2024
1 parent f47613d commit 24d3898
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/flutter-sctg-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,16 @@ jobs:
run: tar czf windows-build.tar.gz ./flutter/build ./target/release
shell: bash

- name: Backup Windows build to S3
if: env.BACKUP_BUILD_WINDOWS == 'true'
- name: Install Minio MC
run: |
curl -o mc.exe https://dl.min.io/client/mc/release/windows-amd64/mc.exe
.\mc.exe alias set s3release https://${{ secrets.AWS_S3_ENDPOINT }} "${{ secrets.AWS_ACCESS_KEY_ID }}" "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
$command = ".\mc.exe cp ./windows-build.tar.gz s3release\${{ secrets.AWS_S3_BUCKET }}\${{ env.APP_NAME_LOW }}-build\windows-build-${{ matrix.job.arch }}.tar.gz"
shell: powershell

- name: Backup Windows build to S3
if: env.BACKUP_BUILD_WINDOWS == 'true'
run: |
$command = ".\mc.exe cp ./windows-build.tar.gz s3release\${{ secrets.AWS_S3_BUCKET }}\${{ env.APP_NAME_LOW }}-build\windows-build-${{ matrix.job.arch }}.tar.gz"
Write-Host $command
Invoke-Expression $command
shell: powershell
Expand Down

0 comments on commit 24d3898

Please sign in to comment.