mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
37 lines
934 B
YAML
37 lines
934 B
YAML
name: Build/release
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
|
|
- name: Install Node.js, NPM and Yarn
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Build and release with electron-builder
|
|
run: |
|
|
export GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
|
yarn
|
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
|
yarn dist -c.snap.publish=github
|
|
elif [ "$RUNNER_OS" == "Windows" ]; then
|
|
yarn dist
|
|
elif [ "$RUNNER_OS" == "macOS" ]; then
|
|
yarn dist -m --x64 --arm64
|
|
else
|
|
echo "$RUNNER_OS not supported"
|
|
exit 1
|
|
fi
|
|
shell: bash
|