Skip to content

Update build work flow #44

Update build work flow

Update build work flow #44

Workflow file for this run

name: Build PSIs
on:
release:
types: [published]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18]
os: [windows-latest, macos-latest, ubuntu-latest]
include:
# Define the binary names to use for uploads

Check failure on line 14 in .github/workflows/BuildPSI.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/BuildPSI.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
- os: windows-latest
file: server.exe
asset_name: server-x64-win.psi
asset_body: "Windows Server Binary"
- os: macos-latest
file: server
asset_name: server-x64-macos.psi
asset_body: "macOS Server Binary"
- os: ubuntu-latest
file: server
asset_name: server-x64-ubuntu.psi
asset_body: "Ubuntu Server Binary"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
working-directory: ./PSI
run: npm install
- name: Build PSI Image
working-directory: ./PSI
run: npm run build
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "PSI/dist/${{ matrix.file }}"
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true
body: ${{ matrix.asset_body }}