Skip to content

Commit

Permalink
Fix build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cipi1965 committed Aug 31, 2024
1 parent 816678e commit 38700f2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,18 @@ jobs:
APPLE_CERTIFICATES: ${{ secrets.APPLE_CERTIFICATES }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}

- name: Build
- name: Build Windows/Linux
if: ${{ runner.os != 'macOS' }}
run: |
yarn make -- --arch x64
yarn make --arch x64
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- name: Build macOS
if: ${{ runner.os == 'macOS' }}
run: |
yarn make --arch x64,arm64
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,23 @@ jobs:
run: yarn

- name: Add macOS certs
if: matrix.os == 'macos-latest'
if: runner.os == 'macOS'
run: chmod +x ./.github/add-macos-certificate.sh && ./.github/add-macos-certificate.sh
env:
APPLE_CERTIFICATES: ${{ secrets.APPLE_CERTIFICATES }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}

- name: Publish
- name: Publish Windows/Linux
if: ${{ runner.os != 'macOS' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn run publish --arch x64

- name: Publish macOS
if: ${{ runner.os == 'macOS' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: yarn run publish
run: yarn run publish --arch x64,arm64

0 comments on commit 38700f2

Please sign in to comment.