mirror of
https://github.com/WowUp/WowUp.git
synced 2026-01-20 13:48:05 -05:00
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
name: Build WowUp Electron Mac
|
|
on:
|
|
# - push
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
# create-release:
|
|
# name: Create Release
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - name: Create Release
|
|
# id: create_release
|
|
# uses: actions/create-release@v1
|
|
# env:
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
|
# with:
|
|
# tag_name: ${{ github.ref }}
|
|
# release_name: Release ${{ github.ref }}
|
|
# draft: true
|
|
# prerelease: true
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: ["macos-11"]
|
|
node-version: [16.x]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install Angular CLI
|
|
run: npm install -g @angular/cli
|
|
|
|
- name: dmg-license
|
|
run: |
|
|
cd ./wowup-electron
|
|
npm i dmg-license
|
|
|
|
- name: Build Mac App
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
|
CSC_LINK: ${{ secrets.MACOS_CERT }}
|
|
CSC_KEY_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
|
|
NOTARIZE_APPLE_ID: ${{ secrets.NOTARIZE_APPLE_ID }}
|
|
NOTARIZE_APPLE_PASSWORD: ${{ secrets.NOTARIZE_APPLE_PASSWORD }}
|
|
NOTARIZE_APPLE_TEAM_ID: ${{ secrets.NOTARIZE_APPLE_TEAM_ID }}
|
|
run: |
|
|
cd ./wowup-electron
|
|
npm i
|
|
npm run electron:publish
|