Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Aug 20, 2024
1 parent ab5b511 commit e5b6c79
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/pull-request-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ jobs:
with:
node-version: '21.7.1'

- name: Get Yarn cache directory
- name: Get Yarn cache directory (Linux and macOS)
if: ${{ matrix.os != 'windows-latest' }}
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir | tail -n 1)" >> $GITHUB_ENV

- name: Set Yarn cache directory for Windows
if: ${{ matrix.os == 'windows-latest' }}
run: echo "dir=C:\\Users\\runneradmin\\AppData\\Local\\Yarn\\Cache" >> $GITHUB_ENV

- name: Use Yarn cache
uses: actions/cache@v4
id: yarn-cache
Expand All @@ -63,14 +68,14 @@ jobs:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}

- name: Build Windows Package
if: ${{ matrix.os == 'windows-latest'}}
if: ${{ matrix.os == 'windows-latest' }}
run: yarn electron-builder --publish never --x64 --win nsis
env:
CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}

- name: Build MacOS Package
if: ${{ matrix.os == 'macos-latest'}}
if: ${{ matrix.os == 'macos-latest' }}
run: |
sudo mdutil -a -i off
yarn electron-builder --publish never --mac --universal
Expand All @@ -84,7 +89,7 @@ jobs:
ASC_PROVIDER: 'S6UPZG7ZR3'

- name: Build Ubuntu Package
if: ${{ matrix.os == 'ubuntu-latest'}}
if: ${{ matrix.os == 'ubuntu-latest' }}
run: yarn electron-builder --publish never --linux snap

- name: Upload Artifacts
Expand Down

0 comments on commit e5b6c79

Please sign in to comment.