Fix UI build #158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build/Publish artifacts | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v1 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version: 20 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install Python setup tools | |
run: | | |
pip install setuptools | |
- name: Install dependencies | |
run: yarn | |
- name: Add macOS certs | |
if: matrix.os == 'macos-latest' | |
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: Build x64 | |
run: | | |
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 arm64 | |
if: ${{ runner.os == 'macOS' }} | |
run: | | |
yarn make --arch arm64 | |
env: | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} | |
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
- name: Upload macOS artifacts | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'macOS' }} | |
with: | |
name: macos-build | |
path: | | |
out/make/**/*.zip | |
out/make/**/*.dmg | |
- name: Upload Windows artifacts | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'Windows' }} | |
with: | |
name: windows-build | |
path: | | |
out/make/**/*.nupkg | |
out/make/**/*.exe | |
- name: Upload Linux artifacts | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'Linux' }} | |
with: | |
name: linux-build | |
path: | | |
out/make/**/*.rpm | |
out/make/**/*.deb |