mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 10:06:15 -08:00
chore: update electron builder config
ci: update version of upload-artifacts action build: update depdendencies ci: update release script ci: try with ubuntu-18.04 ci: add USE_SYSTEM_FPM=true ci: downgrade electron-builder ci: revert electron-builder, add new step with manual packaging ci: add separate steps for build ci: add separate steps for build ci: adapt package script ci: update package command for macos ci: update package command for macos ci: update package commands ci: update package commands ci: update package commands build: downgrade electron-builder build: revert electron-builder.json ci: update package commands
This commit is contained in:
1 parent
ab1d0bfec8
commit
32e08c969b
5 files changed
+3077
-2291
No files matched your search
@@ -55,7 +55,7 @@ jobs:
|
||||
# release the app after building
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: dev-release
|
||||
path: ./release/iptvnator*
|
||||
path: ./release/iptvnator/**
|
||||
@@ -3,51 +3,9 @@ on:
|
||||
create:
|
||||
tags:
|
||||
- v*
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "16.x"
|
||||
- run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/
|
||||
- run: npm install
|
||||
- run: npm test -- --coverage
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
- run: npm run build:prod
|
||||
env:
|
||||
CI: true
|
||||
release:
|
||||
needs: [build-and-test]
|
||||
name: Release
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "16.x"
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.github_token }}
|
||||
run: npx semantic-release
|
||||
package:
|
||||
needs: [build-and-test, release]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
@@ -56,12 +14,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v1
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "16.x"
|
||||
node-version: 16
|
||||
|
||||
- name: Install Snapcraft
|
||||
uses: samuelmeuli/action-snapcraft@v1
|
||||
@@ -70,9 +28,40 @@ jobs:
|
||||
with:
|
||||
# Log in to Snap Store
|
||||
snapcraft_token: ${{ secrets.snapcraft_token }}
|
||||
|
||||
- name: Package Linux
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
npx electron-builder --linux snap --armv7l --publish always
|
||||
npx electron-builder --linux snap --x64 --publish always
|
||||
npx electron-builder --linux deb rpm --x64 --publish always
|
||||
npx electron-builder --linux deb --ia32 --publish always
|
||||
npx electron-builder --linux deb --arm64 --publish always
|
||||
npx electron-builder --linux deb --armv7l --publish always
|
||||
npx electron-builder --linux AppImage --x64 --publish always
|
||||
npx electron-builder --linux AppImage --ia32 --publish always
|
||||
npx electron-builder --linux AppImage --arm64 --publish always
|
||||
npx electron-builder --linux AppImage --armv7l --publish always
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build/release Electron app
|
||||
- name: Release Electron app - MacOS
|
||||
uses: samuelmeuli/action-electron-builder@v1
|
||||
if: startsWith(matrix.os, 'macos')
|
||||
with:
|
||||
# GitHub token, automatically provided to the action
|
||||
# (No need to define this secret in the repo settings)
|
||||
github_token: ${{ secrets.github_token }}
|
||||
|
||||
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||
# release the app after building
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
|
||||
- name: Release Electron app - Windows
|
||||
uses: samuelmeuli/action-electron-builder@v1
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
with:
|
||||
# GitHub token, automatically provided to the action
|
||||
# (No need to define this secret in the repo settings)
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"icon": "dist/assets/icons/icon-1024.png",
|
||||
"target": {
|
||||
"target": "dmg",
|
||||
"arch": ["arm64", "x64"]
|
||||
"arch": ["universal"]
|
||||
}
|
||||
},
|
||||
"linux": {
|
||||
|
||||
Generated
+3037
-2240
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -118,7 +118,7 @@
|
||||
"conventional-changelog-cli": "2.2.2",
|
||||
"core-js": "3.6.5",
|
||||
"cross-env": "7.0.3",
|
||||
"electron": "16.0.6",
|
||||
"electron": "16.2.2",
|
||||
"electron-builder": "22.14.5",
|
||||
"eslint": "7.32.0",
|
||||
"eslint-plugin-import": "2.25.2",
|
||||
@@ -139,7 +139,7 @@
|
||||
"wait-on": "6.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.18.4"
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"chrome 91"
|
||||
|
||||
Reference in new issue
Block a user