Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Sep 25, 2024
1 parent f739d51 commit 2c4122d
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/pull-request-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,27 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' }}
run: yarn electron-builder --publish never --linux snap

# Install AWS CLI
- name: Install AWS CLI
uses: aws-actions/setup-aws-cli@v2
# Install AWS CLI based on the OS
- name: Install AWS CLI on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y unzip
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
- name: Install AWS CLI on macOS
if: runner.os == 'macOS'
run: |
brew install awscli
- name: Install AWS CLI on Windows
if: runner.os == 'Windows'
run: |
Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -OutFile "C:\awscliv2.msi"
Start-Process msiexec.exe -Wait -ArgumentList '/i C:\awscliv2.msi /qn'
shell: pwsh

# Upload artifacts to Wasabi (Windows)
- name: Upload Artifacts to Wasabi (Windows)
Expand Down Expand Up @@ -124,7 +142,7 @@ jobs:
script: |
const os = '${{ matrix.os }}';
const bucketName = '${{ secrets.WASABI_BUCKET_NAME }}';
const endpoint = 'https://s3.wasabisys.com';
const endpoint = 'https://s3..wasabisys.com';
const artifactDir = 'dist';
const fs = require('fs');
Expand Down

0 comments on commit 2c4122d

Please sign in to comment.