Skip to content

Commit

Permalink
Updated publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lMortimerl committed Jun 10, 2024
1 parent fa19680 commit a97138c
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
55 changes: 45 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ on:
workflow_dispatch:

jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
build_on_windows:
runs-on: windows-latest

steps:
- name: Checkout git repo
Expand All @@ -20,11 +17,49 @@ jobs:
- name: Install Node.js and NPM
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
cache: npm

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
- name: Install project dependencies
run: |
npm install
npm run postinstall
- name: Package
run: |
npm run package
- name: Release App
uses: softprops/action-gh-release@v2
with:
files: |
release/build/Tinfy Setup ${{ github.ref_name }}.exe
release/build/Tinfy Setup ${{ github.ref_name }}.exe.blockname
build_on_ubuntu:
runs-on: ubuntu-latest

steps:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Install Node.js and NPM
uses: actions/setup-node@v3
with:
node-version: 22
cache: npm

- name: Install project dependencies
run: |
npm install
npm run postinstall
- name: Package
run: |
npm run package
- name: Release App
uses: softprops/action-gh-release@v2
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
files: |
release/build/Tinfy-v${{ github.ref_name }}.AppImage
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
],
"afterSign": ".erb/scripts/notarize.js",
"mac": {
"artifactName": "${productName} Setup v${version}.${ext}",
"target": {
"target": "default",
"arch": [
Expand All @@ -186,6 +187,7 @@
"gatekeeperAssess": false
},
"dmg": {
"artifactName": "${productName} v${version}.${ext}",
"contents": [
{
"x": 130,
Expand All @@ -200,11 +202,13 @@
]
},
"win": {
"artifactName": "${productName} Setup v${version}.${ext}",
"target": [
"nsis"
]
},
"linux": {
"artifactName": "${productName} v${version}.${ext}",
"target": [
"AppImage"
],
Expand Down
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tinfy",
"version": "0.0.1",
"version": "0.0.2",
"description": "A Desktop App to tinyfi images and prepare them for the web.",
"license": "MIT",
"author": {
Expand Down

0 comments on commit a97138c

Please sign in to comment.