Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
enabling macbuild in gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
archywillhe committed Oct 29, 2023
1 parent a2e6f73 commit a3a3ecd
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Build
on:
push:
branches:
- 'release/**'
- "release/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -23,39 +23,40 @@ jobs:
csc_link_secret: DESIGNER_WINDOWS_CSC_LINK
csc_key_password_secret: DESIGNER_WINDOWS_CSC_KEY_PASSWORD
- os: ubuntu-latest
csc_link_secret: ''
csc_key_password_secret: ''
csc_link_secret: ""
csc_key_password_secret: ""
steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: ".nvmrc"
cache: "npm"
cache-dependency-path: package-lock.json

- name: Install packages
run: npm ci

# - name: Package app (MacOS only)
# if: matrix.os == 'macos-latest'
# shell: bash
# run: npm run app-package
# env:
# NODE_OPTIONS: '--max_old_space_size=6144'
# APPLE_ID: ${{ matrix.os == 'macos-latest' && secrets.DESIGNER_APPLE_ID || '' }}
# APPLE_APP_SPECIFIC_PASSWORD: ${{ matrix.os == 'macos-latest' && secrets.DESIGNER_APPLE_ID_PASSWORD || '' }}
# CSC_LINK: ${{ matrix.csc_link_secret != '' && secrets[matrix.csc_link_secret] || '' }}
# CSC_KEY_PASSWORD: ${{ matrix.csc_key_password_secret != '' && secrets[matrix.csc_key_password_secret] || '' }}
- name: Package app (MacOS only)
if: matrix.os == 'macos-latest'
shell: bash
run: npm run app-package
env:
NODE_OPTIONS: "--max_old_space_size=6144"
APPLE_ID: ${{ matrix.os == 'macos-latest' && secrets.DESIGNER_APPLE_ID || '' }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ matrix.os == 'macos-latest' && secrets.DESIGNER_APPLE_ID_PASSWORD || '' }}
CSC_LINK: ${{ matrix.csc_link_secret != '' && secrets[matrix.csc_link_secret] || '' }}
CSC_KEY_PASSWORD:
${{ matrix.csc_key_password_secret != '' && secrets[matrix.csc_key_password_secret] || '' }}

- name: Package app (Windows and Linux)
if: matrix.os != 'macos-latest'
shell: bash
run: npm run app-package
env:
NODE_OPTIONS: '--max_old_space_size=6144'
NODE_OPTIONS: "--max_old_space_size=6144"

# - name: Setup Inso CLI version env var
# run:
Expand Down Expand Up @@ -132,17 +133,17 @@ jobs:
packages/insomnia/dist/*.deb
packages/insomnia/dist/*.AppImage
packages/insomnia/dist/*.tar.gz
# packages/insomnia-inso/artifacts/*
# - name: Upload source assets for Sentry
# uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.os }}-sentry
# path: |
# packages/insomnia/build/*.js
# packages/insomnia/build/*.map
# !packages/insomnia/build/yarn-standalone.js
# packages/insomnia-inso/artifacts/*

# - name: Upload source assets for Sentry
# uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.os }}-sentry
# path: |
# packages/insomnia/build/*.js
# packages/insomnia/build/*.map
# !packages/insomnia/build/yarn-standalone.js

update-pull-request:
needs: build-and-upload-release-artifacts
Expand All @@ -152,7 +153,7 @@ jobs:
id: release_version
shell: bash
run: |
echo "version=${BRANCH/release\//}" >> $GITHUB_OUTPUT
echo "version=${BRANCH/release\//}" >> $GITHUB_OUTPUT
env:
BRANCH: ${{ github.ref_name }}

Expand Down

0 comments on commit a3a3ecd

Please sign in to comment.