Skip to content

ci: release headless only with ubuntu #4

ci: release headless only with ubuntu

ci: release headless only with ubuntu #4

name: release-headless
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@master
with:
node-version: 20
- name: Build/release Electron app
run: |
npm install
npm run build
- name: Create headless release artifact
id: create_headless_release
run: |
npm run build:headless
zip -r headless.zip ./renderer/dist-headless
- name: Upload Release
uses: ncipollo/release-action@v1
with:
artifacts: "headless.zip"
token: ${{ secrets.GITHUB_TOKEN }}
makeLatest: true
replacesArtifacts: true