Skip to content

Commit

Permalink
simplify matrix structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgelenas committed May 13, 2021
1 parent 7f441b4 commit 4088235
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,18 @@ on:

jobs:
publish:
runs-on: ${{ matrix.config.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
config:
- { os: macos-latest, arch: x64 }
- { os: ubuntu-latest, arch: x64 }
- { os: windows-latest, arch: x64 }
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
steps:
# - name: Setup brew dependencies
# if: matrix.os == 'macos-latest'
# run: |
# brew install libarchive freetype

- name: Setup apt dependencies
if: matrix.config.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get --no-install-recommends -y libopenjp2-tools rpm bsdtar
Expand Down Expand Up @@ -50,7 +47,7 @@ jobs:
yarn install --prefer-offline
- name: Publish Windows releases
if: matrix.config.os == 'windows-latest'
if: matrix.os == 'windows-latest'
shell: powershell
env:
# These values are used for auto updates signing
Expand All @@ -65,7 +62,7 @@ jobs:
yarn electron-builder --publish always --x64 --win
- name: Publish macOS releases
if: matrix.config.os == 'macos-latest'
if: matrix.os == 'macos-latest'
env:
# These values are used for auto updates signing
# APPLE_ID: ${{ secrets.APPLE_ID }}
Expand All @@ -79,7 +76,7 @@ jobs:
yarn electron-builder --publish always --x64 --mac
- name: Publish Linux releases
if: matrix.config.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest'
env:
# These values are used for auto updates signing
# APPLE_ID: ${{ secrets.APPLE_ID }}
Expand Down

0 comments on commit 4088235

Please sign in to comment.