Skip to content

Commit

Permalink
Stop doing cross builds on release
Browse files Browse the repository at this point in the history
- follow-up to PR #535
  • Loading branch information
irahopkinson committed Oct 8, 2023
1 parent 2c3fea0 commit 7556d03
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

strategy:
matrix:
os: [macos-latest, ubuntu-latest]
os: [windows-latest, macos-latest, ubuntu-latest]
dotnet_version: [7.0.x]
node_version: [18.x]

Expand All @@ -43,11 +43,15 @@ jobs:
npm install
npm run build
- name: dotnet build - Windows on macOS
if: ${{ matrix.os == 'macos-latest' }}
run: npm run build:data-release:windows
- name: Publish releases - Windows
# If the branch is labeled as a release version (e.g. "release/v1.2.3"),
if: ${{ matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/heads/release/v') && contains(github.ref, '.') }}
env:
# This is used for uploading release assets to github
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm exec electron-builder -- --publish always --win

- name: Publish releases - Windows and macOS
- name: Publish releases - macOS
# If the branch is labeled as a release version (e.g. "release/v1.2.3"),
if: ${{ matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/heads/release/v') && contains(github.ref, '.') }}
env:
Expand All @@ -58,8 +62,7 @@ jobs:
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
# This is used for uploading release assets to github
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm exec electron-builder -- --publish always --win --mac
run: npm exec electron-builder -- --publish always --mac

- name: Publish releases - Linux
# If the branch is labeled as a release version (e.g. "release/v1.2.3"),
Expand All @@ -69,8 +72,7 @@ jobs:
USE_HARD_LINKS: false
# This is used for uploading release assets to github
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm exec electron-builder -- --publish always --linux
run: npm exec electron-builder -- --publish always --linux

# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
Expand Down

0 comments on commit 7556d03

Please sign in to comment.