attempt 1 at redoing the release yaml
This commit is contained in:
@@ -9,33 +9,66 @@ permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: windows-latest
|
||||
command: npm run electron:build:win
|
||||
artifact: release/*.exe
|
||||
env:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||
WIN_CSC_LINK: ''
|
||||
- os: macos-latest
|
||||
command: npm run electron:build:mac -- --universal
|
||||
artifact: release/*.dmg
|
||||
env:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||
- os: ubuntu-latest
|
||||
command: npm run electron:build:linux
|
||||
artifact: release/*.AppImage
|
||||
env:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- run: npm install
|
||||
- run: npm run electron:build:win
|
||||
- name: Build (Windows)
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: ${{ matrix.command }}
|
||||
env:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||
WIN_CSC_LINK: ''
|
||||
- uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: releases/*.exe
|
||||
|
||||
build-mac:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- run: npm install
|
||||
- run: npm run electron:build:mac
|
||||
- name: Build (mac/linux)
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: ${{ matrix.command }}
|
||||
env:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||
- uses: softprops/action-gh-release@v2
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
files: releases/*.dmg
|
||||
name: ${{ matrix.os }}-artifacts
|
||||
path: ${{ matrix.artifact }}
|
||||
if-no-files-found: ignore
|
||||
|
||||
publish:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Download all build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
- name: Aggregate artifacts
|
||||
run: |
|
||||
mkdir -p release_all
|
||||
find . -type f \( -name "*.dmg" -o -name "*.AppImage" -o -name "*.exe" -o -name "*.deb" \) -exec cp {} release_all/ \;
|
||||
- name: List aggregated artifacts
|
||||
run: ls -la release_all || true
|
||||
- name: Create GitHub Release with all artifacts
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: release_all/*
|
||||
|
||||
Reference in New Issue
Block a user