From 1e72287700670a84df85a16645b2b842c2bce2a9 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 06:53:43 +0100 Subject: [PATCH 01/16] setup GH for release (WIP) --- .github/workflows/release-win-linux.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release-win-linux.yml diff --git a/.github/workflows/release-win-linux.yml b/.github/workflows/release-win-linux.yml new file mode 100644 index 00000000..35e4fa89 --- /dev/null +++ b/.github/workflows/release-win-linux.yml @@ -0,0 +1,23 @@ +name: release + +on: + workflow_dispatch: + workflow_call: + +jobs: + build: + 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 + + build-mac: + runs-on: macos-latest + timeout-minutes: 15 + steps: + - run: echo "macos build and sign not implemented yet" + From bbf43793dad6c77af5bef480ebddfd218d4e827e Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:02:02 +0100 Subject: [PATCH 02/16] setup GH for release (WIP) --- .../{release-win-linux.yml => release.yml} | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) rename .github/workflows/{release-win-linux.yml => release.yml} (60%) diff --git a/.github/workflows/release-win-linux.yml b/.github/workflows/release.yml similarity index 60% rename from .github/workflows/release-win-linux.yml rename to .github/workflows/release.yml index 35e4fa89..49579fe6 100644 --- a/.github/workflows/release-win-linux.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: workflow_call: jobs: - build: + release-linux: runs-on: ubuntu-latest timeout-minutes: 15 steps: @@ -15,7 +15,17 @@ jobs: node-version: 18 - run: npm ci - build-mac: + release-win: + 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 + + release-mac: runs-on: macos-latest timeout-minutes: 15 steps: From 3b4d888016b9209822ab438a053213e1778c96e0 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:08:00 +0100 Subject: [PATCH 03/16] wip --- .github/workflows/release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49579fe6..8da3d5a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,20 +14,17 @@ jobs: with: node-version: 18 - run: npm ci + - run: npm run release:linux release-win: 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: echo "macos release not implemented yet" release-mac: runs-on: macos-latest timeout-minutes: 15 steps: - - run: echo "macos build and sign not implemented yet" + - run: echo "macos release not implemented yet" From dcb5b4aec3968e1beae5ef292e206c4e3d3f7bf1 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:22:50 +0100 Subject: [PATCH 04/16] wip --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8da3d5a6..910b0b36 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ name: release on: workflow_dispatch: workflow_call: + push: jobs: release-linux: From 0cfb63414534c54e82eeae1f24292012f3eb0123 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:23:42 +0100 Subject: [PATCH 05/16] test-wip --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 7014a62c..21a15791 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,3 @@ $ npm run build:mac $ npm run build:linux ``` - - - From 5f935d67800297f1259b41c904eafd9cfba0584e Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:24:43 +0100 Subject: [PATCH 06/16] test-wip --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 910b0b36..54e30cbc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: - - run: echo "macos release not implemented yet" + - run: echo "win release not implemented yet" release-mac: runs-on: macos-latest From a418fd67d13241550786ea6019544771f059c3d7 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:25:33 +0100 Subject: [PATCH 07/16] wip --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54e30cbc..06af1e60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,7 @@ jobs: with: node-version: 18 - run: npm ci + - run: npm run build - run: npm run release:linux release-win: From 68fe3263ad7c4df42a27e7d79e765a58b7dc4a32 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:26:30 +0100 Subject: [PATCH 08/16] wip --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06af1e60..3a8ac2e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,6 @@ name: release on: workflow_dispatch: workflow_call: - push: jobs: release-linux: From bba23a74b11d29e0f4f84da7302b28f23e95395f Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:27:32 +0100 Subject: [PATCH 09/16] wip --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a8ac2e4..06af1e60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ name: release on: workflow_dispatch: workflow_call: + push: jobs: release-linux: From 7d3a42309323a4ec709249294f9e00c28a0c5e37 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:32:41 +0100 Subject: [PATCH 10/16] wip --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06af1e60..19d1ad42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: workflow_call: push: +env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + jobs: release-linux: runs-on: ubuntu-latest From 15d236d1dab742dc5d775cf487b9fc517fb16677 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:39:45 +0100 Subject: [PATCH 11/16] wip --- .github/workflows/release.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19d1ad42..e09cab95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,6 @@ name: release - +description: Creates a npm draft release with the latest version of the app + on: workflow_dispatch: workflow_call: @@ -9,7 +10,7 @@ env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: - release-linux: + release-linux-windows: runs-on: ubuntu-latest timeout-minutes: 15 steps: @@ -20,16 +21,17 @@ jobs: - run: npm ci - run: npm run build - run: npm run release:linux - - release-win: - runs-on: ubuntu-latest - timeout-minutes: 15 - steps: - - run: echo "win release not implemented yet" + - run: npm run release:windows release-mac: runs-on: macos-latest timeout-minutes: 15 steps: - - run: echo "macos release not implemented yet" + - 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 From fdd0b8e8d044c8147a4668d9d3050c9991d804d4 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:40:38 +0100 Subject: [PATCH 12/16] wip --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e09cab95..79013c45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,4 @@ name: release -description: Creates a npm draft release with the latest version of the app on: workflow_dispatch: From 521e943944917023dd2f12b13888f8ed8cac04e0 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:44:13 +0100 Subject: [PATCH 13/16] wip --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79013c45..0f89ff2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - run: npm ci - run: npm run build - run: npm run release:linux - - run: npm run release:windows + - run: npm run release:win release-mac: runs-on: macos-latest From 4307a657189000486705410e7c13dec36e81b5a0 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:48:26 +0100 Subject: [PATCH 14/16] wip --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f89ff2c..d9b32d6d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,9 @@ jobs: with: node-version: 18 - run: npm ci - - run: npm run build + - run: npm run build:linux - run: npm run release:linux + - run: npm run build:win - run: npm run release:win release-mac: From 68ca94425c5cfa5091f1827caf53f4b58020fde5 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 07:56:28 +0100 Subject: [PATCH 15/16] wip --- .github/workflows/release.yml | 12 +++++++++++- package.json | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9b32d6d..2db9a3dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: - release-linux-windows: + release-linux: runs-on: ubuntu-latest timeout-minutes: 15 steps: @@ -20,6 +20,16 @@ jobs: - 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 diff --git a/package.json b/package.json index c28a0f14..ac71b85a 100644 --- a/package.json +++ b/package.json @@ -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", From b35f5f8f3738976a343fac78f7dbdb4ea4220954 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 Dec 2023 08:01:48 +0100 Subject: [PATCH 16/16] trigger on main push --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2db9a3dd..c75c96f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: workflow_dispatch: workflow_call: push: + branches: + - main env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}