Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH for draft releases #51

Merged
merged 16 commits into from
Dec 3, 2023
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: release

on:
workflow_dispatch:
workflow_call:
push:
branches:
- main

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
release-linux:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build:linux
- run: npm run release:linux

release-windows:
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build:win
- run: npm run release:win

release-mac:
runs-on: macos-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npm run release:mac

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,3 @@ $ npm run build:mac
$ npm run build:linux
```




1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "0.0.1",
"main": "./out/main/index.js",
"author": "Platformatic Inc.",
"scripts": {
"lint": "standard . | snazzy",
"start": "electron-vite preview",
Expand Down