github: Use electron builder wine image for nexus builds #421
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: Release Status | |
on: | |
push: | |
branches: | |
- master | |
- 'release/**' | |
- 'hotfix/**' | |
jobs: | |
release: | |
name: Release | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-2019, macOS-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | |
git submodule sync --recursive | |
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('package.json') }} | |
- name: Install Dependencies | |
run: npm install --force | |
if: steps.cache.outputs.cache-hit != 'true' | |
env: | |
CI: true | |
- name: Install dmg-license | |
if: matrix.os == 'macOS-latest' | |
run: npm install dmg-license --force | |
- name: Build and Release | |
run: npm run release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
EP_DRAFT: true |