mirror of
https://github.com/hzrd149/nsite-gateway.git
synced 2025-06-23 12:05:01 +00:00
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
name: Build SEA
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
sea-action:
|
|
name: Build SEA
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
id: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
id: setup-node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: pnpm
|
|
|
|
- name: Install Dependencies
|
|
run: pnpm install
|
|
|
|
- name: Build and bundle
|
|
run: pnpm build && pnpm bundle
|
|
|
|
- name: Find Node
|
|
id: find-node
|
|
run: echo "node=$(node -e 'console.log(process.argv[0]);')" >>
|
|
$env:GITHUB_OUTPUT
|
|
|
|
- name: SEA
|
|
id: sea
|
|
uses: bryopsida/node-sea-action@v1
|
|
with:
|
|
working-dir: .
|
|
output-dir: build/release
|
|
executable-name: nsite-gateway
|
|
sea-config-path: sea-config.json
|
|
node-path: ${{ steps.find-node.outputs.node }}
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.os }}-sea
|
|
path: build/release
|
|
if-no-files-found: error
|