Skip to content

Commit

Permalink
ci: make basic build release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hlolli committed Nov 30, 2023
1 parent 2d6484d commit f7108f1
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Make ArweaveMinerUi Release

on:
workflow_dispatch:
inputs:
version:
description: "Version to release"
required: true

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-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
id: create_electron_release
uses: samuelmeuli/action-electron-builder@v1.6.0
with:
github_token: ${{ secrets.github_token }}
release: ${{ github.event.inputs.version}}
- name: Create headless release artifact
if: matrix.os == 'ubuntu-latest'
id: create_headless_release
run: |
npm run build:headless
zip -r dist-headless.zip ./renderer/dist-headless
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "@arweave/miner-ui",
"license": "MIT",
"description": "Monitoring and management UI for Arweave miners",
"version": "1.0.0",
"version": "1.0.0-alpha",
"author": "ArweaveTeam <team@arweave.org>",
"main": "app/background.js",
"scripts": {
Expand Down

0 comments on commit f7108f1

Please sign in to comment.