Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
luca.carrisi committed Nov 7, 2024
2 parents 4964afe + 0a962f1 commit d122ada
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 13 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build GUI App

on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
build:
strategy:
matrix:
os: [macos-latest, macos-13, ubuntu-latest, windows-latest]
node-version: [20]
runs-on: ${{ matrix.os }}

steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci

- name: Compile code
run: npm run build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ github.ref_name }} | App ${{ matrix.os }}
tag: ${{ github.ref_name }}
body: "Automated release of Electron app"
artifacts: "dist/**/*.zip"
allowUpdates: true
12 changes: 12 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
appId: com.example.myapp
productName: "DTD - App di valutazione"
directories:
output: dist
win:
target:
- nsis
- zip
files:
- dist/**
- node_modules/**
extraResources: []
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pa-website-validator-ng-gui",
"version": "1.0.0",
"version": "1.0.9",
"main": "dist/main.js",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -29,15 +29,5 @@
"electron": "^32.2.0",
"electron-builder": "^25.1.7",
"sass": "^1.80.4"
},
"build": {
"appId": "com.myapp.app",
"productName": "MyElectronApp",
"win": {
"target": [
"nsis",
"zip"
]
}
}
}

0 comments on commit d122ada

Please sign in to comment.