Skip to content

Build and release

Build and release #1

Workflow file for this run

name: Build and release
on:
release:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm install
- name: Install pkg
run: npm install --global pkg
- name: Build
run: pkg package.json --output gs-log --targets linux,macos,win
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
gs-log-linux
gs-log-macos
gs-log-win.exe
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}