Skip to content

Commit

Permalink
try on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
nk1tz committed Oct 17, 2024
1 parent 4eb52a8 commit 21c4144
Showing 1 changed file with 36 additions and 14 deletions.
50 changes: 36 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
platform: [linux, darwin, win32]
arch: [x64]
runs-on: macos-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3

Expand All @@ -24,19 +21,44 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build for ${{ matrix.os }}
run: npm run package-${{ matrix.platform }}
- name: Build for all platforms
run: npm run package-all

- name: Zip Asset
run: |
zip -r GPG-Bridge-${{ matrix.platform }}.zip dist/GPG-Bridge-${{ matrix.platform }}-x64
- name: Zip Windows Asset
run: zip -r GPG-Bridge-win.zip dist/GPG-Bridge-win32-x64

- name: Upload Asset
- name: Upload Windows Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./GPG-Bridge-${{ matrix.platform }}.zip
asset_name: GPG-Bridge-${{ matrix.platform }}.zip
asset_path: ./GPG-Bridge-win.zip
asset_name: GPG-Bridge-win.zip
asset_content_type: application/zip

- name: Zip macOS Asset
run: zip -r GPG-Bridge-mac.zip dist/GPG-Bridge-darwin-x64 dist/GPG-Bridge-darwin-arm64

- name: Upload macOS Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./GPG-Bridge-mac.zip
asset_name: GPG-Bridge-mac.zip
asset_content_type: application/zip

- name: Zip Linux Asset
run: zip -r GPG-Bridge-linux.zip dist/GPG-Bridge-linux-x64

- name: Upload Linux Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./GPG-Bridge-linux.zip
asset_name: GPG-Bridge-linux.zip
asset_content_type: application/zip

0 comments on commit 21c4144

Please sign in to comment.