Skip to content

Implement matrix build for cross-platform releases (#28) #3

Implement matrix build for cross-platform releases (#28)

Implement matrix build for cross-platform releases (#28) #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
strategy:
matrix:
include:
- os: ubuntu-latest
platform: linux
- os: macos-latest
platform: darwin
- os: windows-latest
platform: win32
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build extension
run: npm run build --workspace=workspace-server
- name: Create release assets
run: npm run release -- --platform=${{ matrix.platform }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: release/${{ matrix.platform }}.google-workspace-extension.tar.gz