Skip to content

Commit

Permalink
ci: simplify release workflow with cross compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
bgenia committed May 23, 2024
1 parent 2f18924 commit 8dfc8e5
Showing 1 changed file with 2 additions and 42 deletions.
44 changes: 2 additions & 42 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
IS_PRERELEASE: "${{contains(github.ref_name, 'dev')}}"

jobs:
build-linux:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -31,47 +31,7 @@ jobs:
pnpm install --frozen-lockfile
pnpm build
- uses: actions/upload-artifact@v3
with:
path: build/bin/*

build-macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: ">=21.0.0"
cache: pnpm
registry-url: https://registry.npmjs.org

- run: |
pnpm install --frozen-lockfile
pnpm build
- uses: actions/upload-artifact@v3
with:
path: build/bin/*

publish:
needs:
- build-linux
- build-macos

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
path: artifacts

- uses: ncipollo/[email protected]
with:
artifacts: artifacts/**/*
artifacts: build/bin/*
prerelease: ${{env.IS_PRERELEASE}}

0 comments on commit 8dfc8e5

Please sign in to comment.