Skip to content

Commit

Permalink
added builds for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mligtenberg committed Jan 10, 2025
1 parent b9d190d commit 471d3c4
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 1 deletion.
90 changes: 90 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: build-release

on:
workflow_dispatch:
inputs:
releaseTitle:
description: "Release title"
required: true
tagVersion:
description: "Tag version"
required: true


permissions:
actions: read
contents: read

jobs:
linuxBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx affected -t build make
- name: Publish release as artifect
uses: actions/upload-artifact@v2
with:
name: linux-release
path: dist/executables


windowsBuild:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx affected -t build make
- name: Publish release as artifect
uses: actions/upload-artifact@v2
with:
name: windows-release
path: dist/executables

macBuild:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx affected -t build make
- name: Publish release as artifect
uses: actions/upload-artifact@v2
with:
name: macos-release
path: dist/executables
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 22

- uses: pnpm/action-setup@v4

# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'pnpm'

- run: pnpm install --frozen-lockfile
Expand Down

0 comments on commit 471d3c4

Please sign in to comment.